Add redirects to netlify deployment
This commit is contained in:
parent
fd93d89b26
commit
5b913205af
2 changed files with 5 additions and 0 deletions
3
.github/workflows/netlify-main.yaml
vendored
3
.github/workflows/netlify-main.yaml
vendored
|
@ -45,6 +45,9 @@ jobs:
|
|||
- name: Extract Artifacts
|
||||
run: unzip -d dist build.zip && rm build.zip
|
||||
|
||||
- name: Copy redirects file
|
||||
run: cp scripts/netlify_redirects dist/_redirects
|
||||
|
||||
- name: Deploy to Netlify
|
||||
id: netlify
|
||||
uses: nwtgck/actions-netlify@v1.2.3
|
||||
|
|
2
scripts/netlify_redirects
Normal file
2
scripts/netlify_redirects
Normal file
|
@ -0,0 +1,2 @@
|
|||
# Copied to the netlify deploy dir in the upload stage
|
||||
/* /index.html 200
|
Loading…
Reference in a new issue