Cloudflare Pages migration with enforced CSP headers

This commit is contained in:
LC mac
2026-01-30 02:11:06 +08:00
parent 422fe04a12
commit eeb5184b8a
2 changed files with 2 additions and 1 deletions

View File

@@ -13,6 +13,7 @@ const gitHash = execSync('git rev-parse --short HEAD').toString().trim()
export default defineConfig({
plugins: [react()],
base: process.env.CF_PAGES ? '/' : '/seedpgp-web-app/',
publicDir: 'public', // ← Explicitly set (should be default)
build: {
outDir: 'dist',
emptyOutDir: false,