Nuxt starter 401 ERROR

Hi there,
I am I have created a project with the nuxt starter. It deployed fine on Netlify but I can not get it running on localhost du to a 401 error.
I added an env file with the api token in my root. What could be the problem?
I did not change anything from the starter folder but the env file.
Thank you for your time.


(https://github.com/Lenasurlenet/datocms-kino-nuxt-datocms-snipcart)[github]

hello @lenasurlenet and welcome! :slight_smile:

Looks like to me that you have a typo on your env variable, it should be called exactly:

NUXT_ENV_DATOCMS_API_TOKEN

Can you please try to see if that fix your issue?

Thank you for your reply.
The .env file was, indeed, not correct. Thanks.

1 Like