Skip to content
Discussion options

You must be logged in to vote

Hi,

Is the .env file present at build time?

This function might be getting optimized into an static JSON file.

Try adding export const dynamic = 'force-dynamic' to the file.

If that fixes it, you need to learn on how to opt-out from this behavior, here:

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ansh
Comment options

Answer selected by rajat1saxena
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants