diff --git a/ui/vite.config.ts b/ui/vite.config.ts index bf699a8..b6def13 100644 --- a/ui/vite.config.ts +++ b/ui/vite.config.ts @@ -3,5 +3,11 @@ import tailwindcss from '@tailwindcss/vite'; import { defineConfig } from 'vite'; export default defineConfig({ - plugins: [tailwindcss(), sveltekit()] + plugins: [tailwindcss(), sveltekit()], + ssr: { + // Force these packages to be bundled into the server output rather than + // treated as external requires. The production Docker image has no + // node_modules, so anything used in server-side code must be inlined. + noExternal: ['marked'] + } });