This directory is a brief example of building an API service using Next.js, which can be deployed to ZEIT Now with environments.
Online eample:
- Visit CodeSandbox.
- Fork from CodeSandbox.
- In the
SERVER CONTROL PANEL, add the secret keyEXAMPLEwith any value. - Edit code and test.
- Install now on local, run:
npm install -g now
- Login:
now login
- Add secret:
now secret add example 23333
- Back to the CodeSandbox, in the
Deploymentpanel, clickDeploy.