Skip to content

Commit

Permalink
chore(web-client): add netlify.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
PiDelport committed Jul 6, 2021
1 parent 785d169 commit 6f47602
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 6f47602

Please sign in to comment.