Skip to content

Commit

Permalink
Add staticwebapp config to support reloading a specific page
Browse files Browse the repository at this point in the history
  • Loading branch information
aberonni committed Jun 11, 2024
1 parent a20e876 commit d8a2c2e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
app_location: "dist/component-library-demo/browser"
skip_app_build: true
skip_api_build: true
config_file_location: "/"
###### End of Repository/Build Configurations ######

close_pull_request_job:
Expand Down
13 changes: 13 additions & 0 deletions staticwebapp.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"$schema": "https://json.schemastore.org/staticwebapp.config.json",
"trailingSlash": "auto",
"navigationFallback": {
"rewrite": "index.html",
"exclude": ["/assets/*"]
},
"responseOverrides": {
"404": {
"redirect": "/"
}
}
}

0 comments on commit d8a2c2e

Please sign in to comment.