# "Make sure that shopwareEndpoint and shopwareAccessToken are settled in the configuration", Error

**URL:** <https://forum.shopware.com/t/make-sure-that-shopwareendpoint-and-shopwareaccesstoken-are-settled-in-the-configuration-error/102376>\
**Category:** Shopware 6 (English)\
**Created:** [27. Dezember 2023 um 10:24 UTC](https://forum.shopware.com/t/make-sure-that-shopwareendpoint-and-shopwareaccesstoken-are-settled-in-the-configuration-error/102376 "2023-12-27T10:24:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bastianhilton](https://avatars.discourse-cdn.com/v4/letter/b/a587f6/32.png) [@bastianhilton](https://forum.shopware.com/u/bastianhilton)\
**Post date:** [27. Dezember 2023 um 10:24 UTC](https://forum.shopware.com/t/make-sure-that-shopwareendpoint-and-shopwareaccesstoken-are-settled-in-the-configuration-error/102376/1 "2023-12-27T10:24:03Z")

</div>

I"m having this issue by using Shopware Frontends in Nuxt 3. „Make sure that shopwareEndpoint and shopwareAccessToken are settled in the configuration“,

I added this to my nuxt.config.ts with the variables in my .env file but same error

runtimeConfig: {  
shopware: {  
shopwareEndpoint: process.env.SHOPWARE\_ENDPOINT,  
},  
public: {  
shopware: {  
shopwareEndpoint: process.env.SHOPWARE\_ENDPOINT,  
shopwareAccessToken: process.env.SHOPWARE\_TOKEN,  
devStorefrontUrl: „“,  
},  
},  
},

Any idea on how to resolve this?

---

<div class="post-metadata">

**Author:** ![lhsia](https://avatars.discourse-cdn.com/v4/letter/l/7ba0ec/32.png) [@lhsia](https://forum.shopware.com/u/lhsia)\
**Post date:** [16. Februar 2024 um 15:28 UTC](https://forum.shopware.com/t/make-sure-that-shopwareendpoint-and-shopwareaccesstoken-are-settled-in-the-configuration-error/102376/2 "2024-02-16T15:28:42Z")

</div>

did you figure it out?

Like was there any additional places you needed to put your env variables? Or perhaps an issue with the api you had set as your SHOPWARE\_ENDPOINT/TOKEN?

---

<div class="post-metadata">

**Author:** ![lhsia](https://avatars.discourse-cdn.com/v4/letter/l/7ba0ec/32.png) [@lhsia](https://forum.shopware.com/u/lhsia)\
**Post date:** [16. Februar 2024 um 19:27 UTC](https://forum.shopware.com/t/make-sure-that-shopwareendpoint-and-shopwareaccesstoken-are-settled-in-the-configuration-error/102376/3 "2024-02-16T19:27:31Z")

</div>

I assume there is just further processes that I need to do but I am a little stumped as to what my next steps are. Any direction would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![rebewp](https://avatars.discourse-cdn.com/v4/letter/r/d2c977/32.png) [@rebewp](https://forum.shopware.com/u/rebewp)\
**Post date:** [22. Februar 2024 um 15:40 UTC](https://forum.shopware.com/t/make-sure-that-shopwareendpoint-and-shopwareaccesstoken-are-settled-in-the-configuration-error/102376/4 "2024-02-22T15:40:03Z")

</div>

Maybe you should remove the first shopwareEndpoint entity, don’t think its supposed to work with it being defined as private and public!

Also you could check out the way Nuxt recommends to use the env variables. Its pretty useful in case you build your application on different env-files because you then will be able to overwrite them during runtime! [https://nuxt.com/docs/guide/going-further/runtime-config#example](https://nuxt.com/docs/guide/going-further/runtime-config#example)

TLDR: Name them as NUXT\_PUBLIC\_SHOPWARE\_SHOPWARE\_ENDPOINT=VALUE in your .env file, delete process.env.SHOPWARE\_ENDPOINT in the runtimeConfig and use ‚‘ (an empty string) instead!  
NUXT\_ is the important part, PUBLIC\_ in case its specified as public, after that its basically the structure of your runtimeConfig.

Additionally here is a pretty good video about the topic:

> **[Nuxt's runtimeConfig - The most common mistake](https://www.youtube.com/watch?v=_FYV5WfiWvs)**
>
> 🤯 Throughout my projects, consultancies and code reviews I came across lots of interesting findings - also with regards to Nuxt's runtimeConfig feature. Rep...

Hope that helps! 🙂
