-
❓QuestionAny deployment guide for deploy razzle app on vercel? thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
whjvenyl
Jul 16, 2020
Replies: 1 comment 12 replies
-
Create this vercel.json in the root directory of your project: {
"name": "after-js",
"version": 2,
"builds": [
{
"src": "build/public/**",
"use": "@now/static"
},
{
"src": "build/server.js",
"use": "@now/node-server"
}
],
"routes": [
{ "src": "/assets.json", "dest": "build/assets.json" },
{ "src": "/chunks.json", "dest": "build/chunks.json" },
{ "src": "/favicon.ico", "dest": "build/public/favicon.ico" },
{ "src": "/robots.txt", "dest": "build/public/robots.txt" },
{ "src": "/static/(.*)", "dest": "build/public/static/$1" },
{ "src": "/(.*)", "dest": "build/server.js" }
]
} Then do a local build with 'npm run build'. |
Beta Was this translation helpful? Give feedback.
12 replies
Answer selected by
fivethreeo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Create this vercel.json in the root directory of your project: