Skip to content

Commit 2c3fd94

Browse files
committed
chore: Updated documentation
Signed-off-by: Frederik Bußmann <[email protected]>
1 parent 3bcb6a4 commit 2c3fd94

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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

docs/quickstart.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
106110
Obtain a list of products from the storefront API with the `useStorefront` utility:
107111

108112
```typescript

0 commit comments

Comments
 (0)