Stack Docker completo in infra/supabase/docker/ (vendored da supabase/supabase) per svincolare dev e produzione da Lovable Cloud. Include override di produzione che non espone porte pubblicamente e disattiva i servizi non usati da CrAPP (Realtime, Storage, imgproxy, Edge Functions, pooler), un Caddyfile con routing /api/* per un solo dominio, e i template .env per app e stack. Forzo inoltre il preset Nitro a node-server in vite.config.ts, dato che il default sarebbe Cloudflare Workers.
19 lines
999 B
TypeScript
19 lines
999 B
TypeScript
// @lovable.dev/vite-tanstack-config already includes the following — do NOT add them manually
|
|
// or the app will break with duplicate plugins:
|
|
// - TanStack devtools (dev-only, first), tanstackStart, viteReact, tailwindcss, tsConfigPaths,
|
|
// nitro (build-only using cloudflare as a default target), VITE_* env injection, @ path alias,
|
|
// React/TanStack dedupe, error logger plugins, and sandbox detection (port/host/strictPort).
|
|
// You can pass additional config via defineConfig({ vite: { ... }, etc... }) if needed.
|
|
import { defineConfig } from "@lovable.dev/vite-tanstack-config";
|
|
|
|
export default defineConfig({
|
|
tanstackStart: {
|
|
// Redirect TanStack Start's bundled server entry to src/server.ts (our SSR error wrapper).
|
|
// nitro/vite builds from this
|
|
server: { entry: "server" },
|
|
},
|
|
// Target plain Node hosting (self-host deploy), overriding the shared config's Cloudflare
|
|
// Workers default — see docs/PORTABILITA.md.
|
|
nitro: { preset: "node-server" },
|
|
});
|