Change preview npm command to use firebase serve; fix headers

This commit is contained in:
Dallas Hoffman 2023-09-13 01:02:55 -04:00
parent 668a8a2d57
commit 8cebb82bae
No known key found for this signature in database
2 changed files with 14 additions and 1 deletions

View File

@ -21,6 +21,19 @@
"value": "same-origin" "value": "same-origin"
} }
] ]
},
{
"source": "**/*",
"headers": [
{
"key": "Cross-Origin-Embedder-Policy",
"value": "require-corp"
},
{
"key": "Cross-Origin-Opener-Policy",
"value": "same-origin"
}
]
} }
] ]
} }

View File

@ -6,7 +6,7 @@
"scripts": { "scripts": {
"dev": "vite dev", "dev": "vite dev",
"build": "vite build", "build": "vite build",
"preview": "vite preview", "preview": "firebase serve",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --plugin-search-dir . --check .", "lint": "prettier --plugin-search-dir . --check .",