a single page app and want history pushstate to work so you get clean URLs (#9)

This commit is contained in:
Rok Garbas 2020-05-09 00:44:52 +02:00 committed by GitHub
parent 99eae108c7
commit 9064063529
Failed to generate hash of commit
2 changed files with 7 additions and 1 deletions

View file

@ -15,7 +15,9 @@ jobs:
- name: Installing Nix - name: Installing Nix
uses: cachix/install-nix-action@v8 uses: cachix/install-nix-action@v8
- name: Building search.nixos.org - name: Building search.nixos.org
run: nix-shell --run "yarn prod" run: |
nix-shell --run "yarn prod"
cp netlify.toml ./dist/
- name: Deploy to Netlify - name: Deploy to Netlify
uses: nwtgck/actions-netlify@v1.0.5 uses: nwtgck/actions-netlify@v1.0.5
env: env:

4
netlify.toml Normal file
View file

@ -0,0 +1,4 @@
[[redirects]]
from = "/*"
to = "/index.html"
status = 200