Skip to content

Update React Router template for Vite Oxygen workflow#3829

Merged
frandiox merged 2 commits into
previewfrom
codex/react-router-vite-mini-oxygen
Jul 6, 2026
Merged

Update React Router template for Vite Oxygen workflow#3829
frandiox merged 2 commits into
previewfrom
codex/react-router-vite-mini-oxygen

Conversation

@frandiox

@frandiox frandiox commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • switch templates/react-router dev/build/preview scripts to Vite and React Router
  • remove the classic Hydrogen Vite plugin from the template runtime path
  • keep @shopify/cli installed for deployment and add an explicit npm run deploy script for shopify hydrogen deploy
  • bump Mini Oxygen to 4.2.0 and keep the temporary Hydrogen package export patch for deploy compatibility
  • remove deprecated tsconfig baseUrl usage by making the ~ alias path explicit

Notes

  • The patch-hydrogen-exports.mjs postinstall shim is still needed for npm installs until the deployment path no longer resolves @shopify/hydrogen/package.json from a package that does not export it.
  • We should remove the patch script and postinstall hook after we release the Shopify CLI with the deploy fix.

Testing

  • npm ci
  • npm run typecheck
  • npm run build
  • npm run deploy -- --help
  • npm run dev -- --host 127.0.0.1 --port 5173, then curl / and confirm SSR content rendered
  • npm run preview -- --host 127.0.0.1 --port 4173, then curl / and confirm production SSR content rendered

Why: Mini Oxygen 4.2.0 now supports standalone Vite dev and preview flows, so the React Router template should stop routing local dev/build/preview through Shopify CLI and classic Hydrogen while preserving the temporary deploy export patch until Hydrogen ships the package.json export.

Co-authored-by: Codex <codex@openai.com>
@frandiox frandiox requested a review from a team as a code owner July 2, 2026 06:52
@frandiox frandiox requested a review from mdamjanic7 July 2, 2026 07:10
Why: the template should still expose the supported Oxygen deployment entry point even though local dev, build, and preview now run through Vite and React Router directly.

Co-authored-by: Codex <codex@openai.com>
@frandiox frandiox merged commit 231b770 into preview Jul 6, 2026
3 checks passed
@frandiox frandiox deleted the codex/react-router-vite-mini-oxygen branch July 6, 2026 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants