process.env variables is undefined in _app.tsx file in Next.js App

Viewed 40

process.env.variables is undefined inside _app.tsx file after hosting the next.js app. But I'm getting the value when running the app locally.

NEXT_PUBLIC_USER_POOL_ID=gsd562323


process.env.NEXT_PUBLIC_USER_POOL_ID // undefined in hosted next.js app

Any pointers to what might be wrong ?

0 Answers
Related