After the .env configuration is modified, the repackage deployment does not take effect

After the .env configuration is modified, the repackage deployment does not take effect

Hey @Hao_Tan!

Can you specify the steps you followed after modifying the .env file?

Well, my modification to .env does not take effect

Hey! I understood that. But after you modified the .env file, did you try restarting the instance? Did you take any steps like stopping and starting your instance again?

I executed it, npm run build and npm run dev

I modified endpoints.rest to not take effect. What should i do

Did you try using export VARIABLE_NAME=VALUE? If you’re using npm to run n8n, this is another way you can set environment variables. To run it via a .env file, I will need to take a look.