diff --git a/now.json b/now.json index e69de29..42befe6 100644 --- a/now.json +++ b/now.json @@ -0,0 +1,18 @@ +{ + "version": 2, + "name": "react-app-tailwindcss-example", + "builds": [{ "src": "package.json", "use": "@now/static-build" }], + "routes": [ + { "src": "^/static/(.*)", "dest": "/static/$1" }, + { "src": "^/favicon.ico", "dest": "/favicon.ico" }, + { "src": "^/asset-manifest.json", "dest": "/asset-manifest.json" }, + { "src": "^/manifest.json", "dest": "/manifest.json" }, + { + "src": "^/service-worker.js", + "headers": { "cache-control": "s-maxage=0" }, + "dest": "/service-worker.js" + }, + { "src": "^/precache-manifest.(.*)", "dest": "/precache-manifest.$1" }, + { "src": "^/(.*)", "dest": "/index.html" } + ] +} diff --git a/package.json b/package.json index 1795883..158e30e 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "scripts": { "start": "react-scripts start", "build": "react-scripts build", + "now-build": "react-scripts build && mv build dist", "test": "react-scripts test", "eject": "react-scripts eject" },