fix: set the allowed origins

This commit is contained in:
2026-09-23 20:35:36 +02:00
parent 801d99b745
commit 0d7db83fd2
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -4,4 +4,5 @@ export default {
// Config options... // Config options...
// Server-side render by default, to enable SPA mode set this to `false` // Server-side render by default, to enable SPA mode set this to `false`
ssr: true, ssr: true,
allowedActionOrigins: ["sharper.ly", "*.sharper.ly"]
} satisfies Config; } satisfies Config;
+3
View File
@@ -21,4 +21,7 @@ export default defineConfig({
resolver, so the server build ends up with exactly one React. */ resolver, so the server build ends up with exactly one React. */
noExternal: ["react-router"], noExternal: ["react-router"],
}, },
server: {
allowedHosts: ["dev.sharper.ly", "sharper.ly"]
}
}); });