This commit is contained in:
zhongluofeng committed 2026-11-06 15:07:02 +08:00
1 parent 787544eec1
commit 4ff9146910
81 files changed
+18417 -545

No files matched your search

+5
View File
@@ -11,6 +11,11 @@ export default defineConfig({
output: 'server',
adapter: node({ mode: 'standalone' }),
integrations: [react()],
security: {
// 反代后 request.url 的 origin 可能是 localhost,内置校验会误伤正常表单提交。
// 所有写接口在 src/lib/auth.ts 的 guardWrite / sameOrigin 中自行做同源校验。
checkOrigin: false,
},
vite: {
plugins: [tailwindcss()],
},