Skip to content

Commit

Permalink
chore: example of api address
Browse files Browse the repository at this point in the history
  • Loading branch information
mkucmus committed Feb 13, 2024
1 parent 2846d76 commit 369732b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/snippets-middleware/components/Frontends.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const { t, availableLocales, locale: currentLocale } = useI18n();
<strong>{{ isLoggedIn }}</strong>
</p>
</div>
<div>you can also examine what is returned by <strong>/api/translations?locale={{ currentLocale }}</strong> and loaded by i18n module</div>
</template>
<style scoped>
.logo {
Expand Down
2 changes: 2 additions & 0 deletions examples/snippets-middleware/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ export default defineNuxtConfig({
"@shopware-pwa/cms-base",
],
runtimeConfig: {
// These values are used in the Shopware API client
// TODO: replace with environment variables copied from Github once feature is supported
api_client_id: "SWIARW9QA2DYOUX3OXJMRGX2UQ", // or import.meta.env.NUXT_SHOPWARE_ACCESS_KEY_ID when .env is defined
api_client_secret: "dTRpT3ptZDlmMHZocDNrb2ZOODYxYWtIWnZtRTByUnBvRXh5M3Q", // or import.meta.env.NUXT_SHOPWARE_SECRET_ACCESS_KEY when .env is defined
public: {
Expand Down

0 comments on commit 369732b

Please sign in to comment.