You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9bbdc25
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: CLAUDE.md
+23-11Lines changed: 23 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,14 +5,14 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
5
5
## Development Commands
6
6
7
7
### Core Development
8
-
-`npm run dev` - Start development server on port 3456 with codegen
9
-
-`npm run dev:ca` - Start dev server with a tunnel and push its domain for the Customer Account API OAuth flow
10
-
-`npm run build` - Build for production with codegen
8
+
-`npm run dev` - Start Vite/MiniOxygen on port 3456
9
+
-`npm run dev:ca` - Alias for local HTTPS development
10
+
-`npm run build` - Build the React Router client and Oxygen worker
11
11
-`npm run preview` - Preview production build
12
12
-`npm run start` - Start production server
13
13
-`npm run typecheck` - Generate React Router types and run TypeScript type checking
14
-
-`npm run routes-check` - Verify all standard Shopify routes are configured
15
-
-`npm run codegen` - Generate GraphQL types and schema
14
+
-`npm run dev:https` - Start local HTTPS for Customer Account OAuth
15
+
-`npm run deploy` - Deploy the built client and worker to Oxygen
16
16
17
17
### Code Quality
18
18
-`npm run check` - Run Oxfmt and Oxlint through `vp check`
@@ -32,8 +32,8 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
32
32
This is a **Shopify Hydrogen storefront** built with **React Router v7** (not Remix) and integrated with **Weaverse** for visual page building. Key architectural decisions:
33
33
34
34
### Framework Stack
35
-
-**Hydrogen 2026.4** - Shopify's React framework for commerce
`weaverse` is a `WeaverseClient` instance that has been injected into the app context by Weaverse. It provides a set of methods to interact with the Weaverse API.
107
109
108
-
```ts:app/lib/context.ts
109
-
// app/lib/context.ts
110
-
111
-
const hydrogenContext =createHydrogenContext(
112
-
{
113
-
env,
114
-
request,
115
-
cache,
116
-
waitUntil,
117
-
session,
118
-
i18n: getLocaleFromRequest(request),
119
-
cart: {
120
-
queryFragment: CART_QUERY_FRAGMENT,
121
-
},
122
-
},
123
-
{},
124
-
);
125
-
126
-
const weaverse =newWeaverseClient({
127
-
...hydrogenContext,
128
-
request,
129
-
cache,
130
-
themeSchema,
131
-
components,
132
-
});
133
-
134
-
Object.assign(hydrogenContext, { weaverse });
135
-
136
-
returnhydrogenContext;
137
-
```
110
+
The request-scoped clients are created in `app/.server/context.ts`. `server.ts`
111
+
composes Shopify handlers with React Router and applies the session and response
112
+
headers. See [migration notes](docs/hydrogen-2026-10-migration.md) for the new
113
+
request lifecycle.
138
114
139
115
### Rendering page content
140
116
141
117
Weaverse pages is rendered using `<WeaverseContent />` component.
To create a section, you need to create a new file in [`app/sections`](app/sections) directory and register it in [`app/weaverse/components.ts`](app/weaverse/components.ts) file.
217
193
218
-
**Important:** All Weaverse sections must use `forwardRef` and extend `HydrogenComponentProps`.
194
+
**Important:** All Weaverse sections must use `forwardRef` and extend `WeaverseComponentProps`.
0 commit comments