Skip to content

refactor: Fetcher for tanstack start - #787

Open
aXenDeveloper wants to merge 7 commits into
refactor/routesfrom
refactor/fetcher
Open

refactor: Fetcher for tanstack start#787
aXenDeveloper wants to merge 7 commits into
refactor/routesfrom
refactor/fetcher

Conversation

@aXenDeveloper

Copy link
Copy Markdown
Owner

Improving Documentation

Description

What?

Why?

@vercel

vercel Bot commented Sep 3, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
vitnode-prod Ready Ready Preview Sep 3, 2026 8:04pm UTC

@github-actions github-actions Bot added the 🧱 Refactor A code change that neither fixes a bug nor adds a feature label Sep 3, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d5a9eb799c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +10 to +13
import {
fetcher as serverFetcher,
rawFetcher as serverRawFetcher,
} from "./server";

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Make the server branch removable from client bundles

When this universal entry is compiled for the browser, the transformed .server(...) binding becomes unused, but packages/vitnode/package.json declares **/server.js as side-effectful, so bundlers must retain this new static ./server import. That keeps @tanstack/react-start/server-only, dotenv, and the request-only APIs in the client dependency graph and can fail any browser build importing the universal fetcher. The added test hides the problem by deleting the import itself with a regex rather than exercising the actual Vite client build; move the implementation to a tree-shakeable module or exempt this entry from the side-effect pattern.

AGENTS.md reference: AGENTS.md:L35-L36

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🧱 Refactor A code change that neither fixes a bug nor adds a feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant