Skip to content

Commit ea9a48a

Browse files
committed
setting staticwebapp.config.json for Azure
1 parent c0f4958 commit ea9a48a

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type": "module",
66
"scripts": {
77
"dev": "vite",
8-
"build": "vite build",
8+
"build": "vite build && cp staticwebapp.config.json dist/",
99
"lint": "eslint .",
1010
"preview": "vite preview"
1111
},

staticwebapp.config.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"routes": [
3+
{
4+
"route": "/*",
5+
"serve": "/index.html",
6+
"statusCode": 200
7+
}
8+
]
9+
}

0 commit comments

Comments
 (0)