Skip to content

Commit

Permalink
Merge pull request #11 from registreerocks/web-client/add-netlify-config
Browse files Browse the repository at this point in the history
chore(web-client): add Netlify config
  • Loading branch information
PiDelport authored Jul 6, 2021
2 parents 785d169 + 6f47602 commit f92eca3
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Docs: https://docs.netlify.com/configure-builds/file-based-configuration/

[build]
base = "web-client"
publish = "www"
command = "npm run build:prod"

# Set fallback
#
# Docs:
# https://angular.io/guide/deployment#routed-apps-must-fallback-to-indexhtml
# https://docs.netlify.com/configure-builds/common-configurations/angular/#redirects
#
# TODO: Investigate pre-rendering with Angular Universal or Scully to avoid needing this?
# https://www.netlify.com/blog/2021/02/08/pre-rendering-with-angular-universal/

[[redirects]]
from = "/*"
to = "/index.html"
status = 200

0 comments on commit f92eca3

Please sign in to comment.