fix(nitro): explicit publicAssets dir=../public so templates ship in .output
Nitro resolved default publicAssets `dir: "public"` relativ zu srcDir (`server/`) statt zum rootDir. Folge: backend/public/templates/*.html wurde nicht in .output/public/ kopiert → GoTrue lädt 404. Fix: explicit `dir: "../public"` zeigt auf <projectRoot>/public/.
This commit is contained in:
parent
5434254f74
commit
512949f851
@ -5,6 +5,13 @@ export default defineNitroConfig({
|
||||
srcDir: "server",
|
||||
preset: "node-server",
|
||||
|
||||
// Static-Assets explizit: GoTrue lädt Mail-Templates von
|
||||
// https://api.staging.rebreak.org/templates/*.html → kommt aus public/templates/.
|
||||
// Default-publicAssets greift nicht zuverlässig wenn srcDir auf "server" zeigt.
|
||||
publicAssets: [
|
||||
{ baseURL: "/", dir: "../public", maxAge: 60 * 60 },
|
||||
],
|
||||
|
||||
// Supabase als external dep — nicht bundlen
|
||||
externals: {
|
||||
inline: [/^(?!@supabase\/supabase-js)/],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user