Suppose I have an .env file set up like this:
NEXT_PUBLIC_API_BASE_PATH = value1
While this .env is functioning correctly in my local environment, once deployed to Azure Web Static Apps and added to the configurationhttps://i.sstatic.net/eqiYn.png
My application appears to be unable to read this .env file. When I debug it through the console, it shows the value as undefined
. https://i.sstatic.net/GP2Fu.png
I am aware of a workaround by setting the value through my .yml
file and next.config.js
, but I understand that these solutions may not be ideal for a real production scenario. Is there a definitive solution to this issue?