Skip to content

Instantly share code, notes, and snippets.

@roelvan
Last active January 15, 2019 06:59
Show Gist options
  • Save roelvan/1190b1b230eefb7b3e51cf2aa8cdd3f6 to your computer and use it in GitHub Desktop.
Save roelvan/1190b1b230eefb7b3e51cf2aa8cdd3f6 to your computer and use it in GitHub Desktop.
If you want to port an existing @zeithq node app from v1 to v2, you can use the following now.json. (credits: https://twitter.com/styfle/status/1077111544905850880)
{
"name": "your-app",
"alias": "your-app.now.sh",
"Version": 2,
"builds": [
{ "src": "index.js", "user": "@now/node-server", "config": { "maxLambdaSize": "50mb" } }
],
"routes": [{ "src": "/(.*)", "dest": "/index.js" }]
}
@janpanschab
Copy link

Hey, user should be use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment