- New Go backend binary (backend + runner) replacing old scraper/ - Rename SCRAPER_API_URL → BACKEND_API_URL in UI env and docker-compose - Rename scraperFetch → backendFetch across all 19 UI server files - Remove SCRAPER_PROXY env var and proxy transport from browser.Config - Add Meilisearch, Valkey, Caddy to docker-compose - Add docs/: api-endpoints.md, request-flow.mermaid.md, data-flow.mermaid.md
19 lines
607 B
TypeScript
19 lines
607 B
TypeScript
import { sveltekit } from '@sveltejs/kit/vite';
|
|
import tailwindcss from '@tailwindcss/vite';
|
|
import { defineConfig } from 'vite';
|
|
|
|
export default defineConfig({
|
|
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'],
|
|
// cropperjs is DOM-only (used inside $effect); exclude from SSR bundle.
|
|
external: ['cropperjs']
|
|
},
|
|
optimizeDeps: {
|
|
include: ['cropperjs']
|
|
}
|
|
});
|