Skip to content

Commit d09cc24

Browse files
committed
build: CF headers
1 parent b0d43e7 commit d09cc24

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
enable-pre-post-scripts=true

_headers

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/*
2+
Cross-Origin-Embedder-Policy: require-corp
3+
Cross-Origin-Opener-Policy: same-origin

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"scripts": {
77
"astro": "astro",
88
"build": "astro check && astro build",
9+
"postbuild": "cp _headers ./dist/",
910
"dev": "astro dev",
1011
"preview": "astro preview",
1112
"start": "astro dev"

0 commit comments

Comments
 (0)