Skip to content

Commit

Permalink
feat: CR changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mdanilowicz committed Nov 13, 2024
1 parent f1a959d commit 0550415
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .changeset/stale-files-learn.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
"@shopware/api-client": minor
"@shopware-pwa/nuxt3-module": minor
---

Add config default headers
Added possibility to use Nuxt config file for setting the API requests headers. Headers are added to each request SSR and CSR.
2 changes: 2 additions & 0 deletions packages/nuxt3-module/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ Internally, the module uses [API Client](https://npmjs.com/package/@shopware/api
You can use Nuxt config to set the default API call headers.
More about Nuxt configuration can be found [HERE](https://nuxt.com/docs/getting-started/configuration).

> **_NOTE:_** By default, the values in `runtimeConfig` are only available on the server-side. However, keys within `runtimeConfig.public` are also accessible on the client-side. [MORE](https://nuxt.com/docs/getting-started/configuration#environment-variables-and-private-tokens)
```json
{
"runtimeConfig": {
Expand Down

0 comments on commit 0550415

Please sign in to comment.