Last active
April 10, 2019 19:33
-
-
Save vampaynani/38c4634c519ddcd53bca7940cc80adfd to your computer and use it in GitHub Desktop.
Now.json file for react-app deployment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": 2, | |
"alias": "my-new-react-app", | |
"name": "my-react-app", | |
"builds": [ | |
{ | |
"src": "package.json", | |
"use": "@now/static-build", | |
"config": { "distDir": "build" } | |
} | |
], | |
"routes": [ | |
{ | |
"src": "/static/(.*)", | |
"dest": "/static/$1" | |
}, | |
{ "src": "/favicon.ico", "dest": "/favicon.ico" }, | |
{ "src": "/manifest.json", "dest": "/manifest.json" }, | |
{ | |
"src": "/service-worker.js", | |
"dest": "/service-worker.js" | |
}, | |
{ | |
"src": "/(.*)", | |
"dest": "/index.html" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment