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 ?