Skip to content

fix: run the default entry through Vite in a cf project - #159

Merged
yusukebe merged 1 commit into
nextfrom
fix/vite-entry-file
Oct 11, 2026
Merged

yusukebe merged 1 commit into
nextfrom
fix/vite-entry-file

Conversation

@yusukebe

Copy link
Copy Markdown
Member

In a cf project (cloudflare.config.ts and a Vite config), hono batch - src/index.tsx ran the app on Node.js, so c.env was empty and every request returned 500. An agent passed the entry file this way in a trial and lost three turns to it. Now the default entry (src/index.ts, src/index.tsx, ...) as the file argument still goes through Vite, and --runtime vite accepts it. Another file still runs on Node.js.

The author should do the following, if applicable

  • Add tests
  • Run tests
  • pnpm run format:fix && pnpm run lint:fix to format the code
  • Add TSDoc/JSDoc to document the code

@yusukebe
yusukebe merged commit ac57297 into next Oct 11, 2026
4 checks passed
@yusukebe
yusukebe deleted the fix/vite-entry-file branch October 11, 2026 01:28
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.

1 participant