I can't get my server-side environment variables to work with my Next.js app.

I added my environment variables to production and preview and both are undefined when I call process.env.MY_VARIABLE in middleware.ts
Was this page helpful?