File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ Automatically generates and hot-reloads TypeScript types from your Shopify Graph
2727- Nuxt 3 & 4 ready
2828- Storefront and Admin API support
2929- Customizable GraphQL code generation
30- - Server & client side
30+ - Server & client side usage
3131- Sandboxed GraphiQL Explorer integration
3232
3333## 📦 Setup
@@ -114,7 +114,11 @@ The module exposes utilities to access each API via Nitro endpoints.
114114
115115#### Storefront API example
116116
117- You can use the ` useStorefront ` utility to access the storefront API:
117+ You can use the ` useStorefront ` utility to access the storefront API.
118+
119+ > [ !WARN]
120+ > The public access key will be exposed publicly in the nuxt runtime config.
121+ > If you want to stay fully server side, set a private access token instead: ` clients > storefront > privateAccessToken `
118122
119123``` typescript
120124// ~/server/api/products.ts
Original file line number Diff line number Diff line change @@ -103,6 +103,10 @@ The module exposes utilities to access each API via Nitro endpoints.
103103
104104# ### Storefront API example
105105
106+ > [!WARN]
107+ > The public access key will be exposed publicly in the nuxt runtime config.
108+ > If you want to stay fully server side, set a private access token instead: `clients > storefront > privateAccessToken`
109+
106110Obtain a list of products from the storefront API with the `useStorefront` utility :
107111
108112` ` ` typescript
You can’t perform that action at this time.
0 commit comments