diff --git a/.github/workflows/netlify-main.yaml b/.github/workflows/netlify-main.yaml index a9ab069..f2b191f 100644 --- a/.github/workflows/netlify-main.yaml +++ b/.github/workflows/netlify-main.yaml @@ -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 diff --git a/scripts/netlify_redirects b/scripts/netlify_redirects new file mode 100644 index 0000000..defe316 --- /dev/null +++ b/scripts/netlify_redirects @@ -0,0 +1,2 @@ +# Copied to the netlify deploy dir in the upload stage +/* /index.html 200