skeleton@2025.1.3
Patch Changes
-
Bump Remix to 2.16.1 and vite to 6.2.0 (#2784) by @wizardlyhel
-
Update skeleton and create-hydrogen cli to 3.75.4 (#2769) by @juanpprieto
-
Fixing typescript compile (#2787) by @balazsbajorics
In tsconfig.json:
"types": [ "@shopify/oxygen-workers-types", - "@remix-run/node", + "@remix-run/server-runtime", "vite/client" ],
-
Updates
@shopify/cli-kit
,@shopify/cli
and@shopify/plugin-cloudflare
to3.77.0
. (#2810) by @seanparsons -
Support for the Remix future flag
v3_routeConfig
. (#2722) by @seanparsonsPlease refer to the Remix documentation for more details on
v3_routeConfig
future flag: https://remix.run/docs/en/main/start/future-flags#v3_routeconfig-
Add the following npm package dev dependencies:
"devDependencies": { "@remix-run/dev": "^2.16.1", + "@remix-run/fs-routes": "^2.16.1", + "@remix-run/route-config": "^2.16.1",
-
If you have
export function Layout
in yourroot.tsx
, move this export into its own file. For example:// /app/layout.tsx export default function Layout() { const nonce = useNonce(); const data = useRouteLoaderData<RootLoader>('root'); return ( <html lang="en"> ... ); }
-
Create a
routes.ts
file.import { flatRoutes } from "@remix-run/fs-routes"; import { layout, type RouteConfig } from "@remix-run/route-config"; import { hydrogenRoutes } from "@shopify/hydrogen"; export default hydrogenRoutes([ // Your entire app reading from routes folder using Layout from layout.tsx layout("./layout.tsx", await flatRoutes()), ]) satisfies RouteConfig;
-
Update your
vite.config.ts
.export default defineConfig({ plugins: [ hydrogen(), oxygen(), remix({ - presets: [hydrogen.preset()], + presets: [hydrogen.v3preset()],
-
-
Updated dependencies [
0425e50d
,74ef1ba7
]:- @shopify/remix-oxygen@2.0.12
- @Shopify/hydrogen@2025.1.3