Yes. I have set the values. We can create env values for all the environments locally using the now env add <VARIABLE NAME> command and publish to remote. Also we can add values directly on the settings page and pull them to the local using now pull env. I tried both ways. Unfortunately the values are available in local but not available on Preview in both cases. Bad luck
Yes. I have set the values. We can create env values for all the environments locally using the
now env add <VARIABLE NAME>
command and publish to remote. Also we can add values directly on the settings page and pull them to the local usingnow pull env
. I tried both ways. Unfortunately the values are available in local but not available on Preview in both cases. Bad luckA workaround I found for now is to list all the variables you want in the client side code in the
env
property of the Next.js config.I updated the post with more details.