Skip to content

Commit 8ffe055

Browse files
committed
Fix deployment to now.sh.
1 parent 4f5fdd2 commit 8ffe055

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

examples/basic-fetch/now.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"version": 2,
3+
"builds": [{ "src": "package.json", "use": "@now/static-build" }],
4+
"routes": [
5+
{ "src": "^/static/(.*)", "dest": "/static/$1" },
6+
{ "src": "^/favicon.ico", "dest": "/favicon.ico" },
7+
{ "src": "^/(.*)", "dest": "/index.html" }
8+
]
9+
}

examples/basic-fetch/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
"scripts": {
1212
"start": "react-scripts start",
1313
"build": "react-scripts build",
14-
"test": "react-scripts test",
15-
"eject": "react-scripts eject"
14+
"now-build": "npm run build && mv build dist"
1615
},
1716
"eslintConfig": {
1817
"extends": "react-app"

0 commit comments

Comments
 (0)