Skip to content

Razzle/Vercel(aka zeit) deployement #1355

Answered by whjvenyl
momosetti asked this question in Q&A
Discussion options

You must be logged in to vote

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": "/(.*)", "…

Replies: 1 comment 12 replies

Comment options

You must be logged in to vote
12 replies
@fivethreeo
Comment options

@moringaman
Comment options

@fivethreeo
Comment options

@moringaman
Comment options

@fivethreeo
Comment options

Answer selected by fivethreeo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
7 participants
Converted from issue

This discussion was converted from issue #1355 on October 06, 2020 11:57.