Skip to content

Commit

Permalink
Updated staticwebapp
Browse files Browse the repository at this point in the history
  • Loading branch information
xvxnoah committed Nov 8, 2023
1 parent 7405651 commit 6320ed0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
<title>KASULÀ</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
15 changes: 12 additions & 3 deletions staticwebapp.config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"routes": [
"routes": [
{
"route": "/signup",
"allowedRoles": ["anonymous"]
Expand Down Expand Up @@ -31,6 +31,15 @@
{
"route": "/RecipeDetail/:id",
"allowedRoles": ["authenticated"]
},
{
"route": "/*",
"serve": "/index.html",
"statusCode": 200
}
]
}
],
"navigationFallback": {
"rewrite": "/index.html",
"exclude": ["/images/*.{png,jpg,gif}", "/css/*", "/js/*"]
}
}

0 comments on commit 6320ed0

Please sign in to comment.