now
Last updated
Was this helpful?
Last updated
Was this helpful?
Now is a new serverless platform provided by ZEIT. Their aim is to make serverless deployments easy and hassle free. Fortunately light works well with Now to make it even easier!
Note that this guide targets their V2 platform and will not work with their older docker system (see on how to use server mode)
All data required to host on the now platform is stored in a now.json
file.
NOTE: Now uses the file system as the router by default, so custom paths you have set with the path
flag will not work by default. You will need to manually add your routes to the now.json
. The configuration above will forward /
to the routes/index.js
handler.
Once you save the file in the root folder, all you need to do is run the now
command. If you have not already, see the . See the to customize light and your deployment how you want.