Skip to content

Commit 6fa8312

Browse files
committed
ci: add Azure Static Web Apps workflow file #2
1 parent 5087335 commit 6fa8312

3 files changed

Lines changed: 19 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ frontend/coverage/
3535
frontend/.next/
3636
frontend/out/
3737
frontend/build/
38+
frontend/dist/
3839
frontend/.vercel
3940
frontend/*.tsbuildinfo
4041
frontend/next-env.d.ts

frontend/staticwebapp.config.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"routes": [
3+
{
4+
"route": "/*",
5+
"serve": "/index.html",
6+
"statusCode": 200
7+
}
8+
],
9+
"navigationFallback": {
10+
"rewrite": "/index.html"
11+
},
12+
"platform": {
13+
"apiRuntime": "node:18"
14+
}
15+
}

frontend/vite.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@ import react from '@vitejs/plugin-react-swc'
44
// https://vite.dev/config/
55
export default defineConfig({
66
plugins: [react()],
7+
build: {
8+
outDir: 'build',
9+
},
710
})

0 commit comments

Comments
 (0)