Skip to content

Commit 4083710

Browse files
committed
Expose data.json on netlify
1 parent 2b91a0b commit 4083710

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

.github/workflows/build.yml

+2
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,6 @@ jobs:
4343
4444
yarn build
4545
cp -r site/weeks/ dist
46+
cp _headers dist
47+
cp site/js/data/data.json dist
4648
npx netlify-cli deploy --dir=dist --prod

.github/workflows/deploy-on-push.yml

+2
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,6 @@ jobs:
2121
2222
yarn build
2323
cp -r site/weeks/ dist
24+
cp _headers dist
25+
cp site/js/data/data.json dist
2426
npx netlify-cli deploy --dir=dist --prod

.github/workflows/gen-historical-week.yml

+2
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,6 @@ jobs:
4343
4444
yarn build
4545
cp -r site/weeks/ dist
46+
cp _headers dist
47+
cp site/js/data/data.json dist
4648
npx netlify-cli deploy --dir=dist --prod

site/_headers

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/data.json
2+
Access-Control-Allow-Origin: *

0 commit comments

Comments
 (0)