.env.local not being found

I have started to create a project as a web app and got it working reasonable well. However once I started to use Firebase Auth the system wanted me to setup a .env.local file that I have setup. I have include the variables required being the following

NEXT_PUBLIC_FIREBASE_API_KEY=“"
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN="

NEXT_PUBLIC_FIREBASE_PROJECT_ID=“"
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET="

NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=“"
NEXT_PUBLIC_FIREBASE_APP_ID="

I have replaced the values with ** to protect details. I have updated the file and use the Drop down in the Web to Hard Restart however I continue to get and error that the Keys are missing and to check and restart the server. I am doing everything on the web version of the Studio. IS there another way to restart the server or check that the file is being read.

Example error “FIREBASE CONFIG ERROR: API Key (NEXT_PUBLIC_FIREBASE_API_KEY) is missing. Please ensure it is set in your .env.local file and that you have restarted the development server.”

Thanks in advance

it maybe looking for .env file I have both .env and .env.local
Hope this helps.

Thanks Jonothan. Have tried both .env and .env.local and had both inplace. With No change.
I think the biggest issue is I cannot find a way to restart the server.

are you deploying to GCP by chance, or are you just developing within the sandbox. If the former, you will have better success with using Google Secrets manager, and manually providing permissions to your firebase app using the cli tool.

Your .envs will NOT be commited (good practice) and so your (deployed) application has no idea where to find your variables

Otherwise genuinelly delete your env.local and just use the .env file as your secrets, maybe the existence of both is causing issues with your application

Just developing in the sandbox. Have not published it as yet. Trying to get a good handle the project in the sandbox. I have checked the values and everything appears correct. The Prompts adivse that I need to restart the Server. However I can find no option for that in the console
I will give the deletion of the local and shot and see if it helps

is this for access to Firestore in the sandbox?

I had to setup a user with email/password and use that UID to create a rule in Firestore database for access.

It was in the sandbox. I have recreated the project it appears to be working now. I thinking on of the backend setups did not actually complete correctly as the new version of the project has worked.
Thanks for the assist