mirror of
https://github.com/kccleoc/seedpgp-web.git
synced 2026-03-07 01:47:52 +08:00
Cloudflare Pages migration with enforced CSP headers
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user