When deploying this example to Vercel you'll want to update the vercel.json configuration file:

"build": {
"env": {
"DOMAIN": "",
"AUTH0_AUDIENCE": "hasura",
"AUTH0_CLIENT_SECRET": "@auth0_client_secret",
"SESSION_COOKIE_SECRET": "@session_cookie_secret"

Some of these values are settings and can just be added to your repository if you want. Others are actual secrets and need to be created as such using the now CLI:

vercel secrets add auth0_client_secret YOUR_AUTH0_CLIENT_SECRET
vercel secrets add session_cookie_secret viloxyf_z2GW6K4CT-KQD_MoLEA2wqv5jWuq4Jd0P7ymgG5GJGMpvMneXZzhK3sL

Pages that use Server-Side Rendering and API routes will automatically become isolated Serverless Functions. This allows page rendering and API requests to scale infinitely.

Refer to Vercel CLI documentation for more options on configuring custom domains.


Get Started with GraphQL Now

Hasura Cloud gives you a fully managed, production ready GraphQL API as a service to help you build modern apps faster.