Run the Keystone server on port 4000: PORT=4000 nodemon server.js
Run the next.js client: npm run dev
Simply now && now alias as per now.json.
- Create a
nowdeployment. now aliasthe deployment to admin.vjraystrata.com.au- The client's footer login link is
admin.vjraystrata.com.au/keystone, no further fixes required. - You don't need to do anything to the client, because it's
@vjr_server_urinow secretis always set to the aliased server URI.
If you ever move to a new mongodb instance, remember to:
- update both
server.env&client.env - run new client & server deployments and alias them to the production website's URLs
- you won't need to update the
@vjr_server_urinow secretas it is always set to the aliased server URI. - more info: https://www.evernote.com/l/ACyk1xhr6BFM_6mF_wsLe086BAG76tktx90