Skip to content

Commit 2ad40da

Browse files
committed
feat(create-app): add preconfigurations for Netlify and Vercel
1 parent 39c24a7 commit 2ad40da

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[build.environment]
2+
NODE_VERSION = "14"
3+
4+
[build]
5+
publish = "dist"
6+
command = "npm run build"
7+
8+
[[redirects]]
9+
from = "/*"
10+
to = "/index.html"
11+
status = 200
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"rewrites": [
3+
{ "source": "/(.*)", "destination": "/index.html" }
4+
]
5+
}

0 commit comments

Comments
 (0)