Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ssg] Preserve the SSR server instance during page rendering #209

Merged
merged 3 commits into from
Jan 9, 2025

Conversation

berlysia
Copy link
Contributor

@berlysia berlysia commented Jan 8, 2025

When using @hono/vite-ssg with Vite v6, if the page has dynamic import, the SSR server is closed when resolving the dynamic import and an error occurs.

A reproduction repository can be found at https://github.com/berlysia/sandbox-hono-ssg-vite-v6-dynamic-import.

As a workaround, simply maintain the SSR server until toSSG is done.

Copy link

changeset-bot bot commented Jan 8, 2025

🦋 Changeset detected

Latest commit: 2a3679c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@hono/vite-ssg Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Member

@yusukebe yusukebe left a comment

Choose a reason for hiding this comment

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

LGTM!

@yusukebe
Copy link
Member

yusukebe commented Jan 9, 2025

Hi @berlysia

Thank you for the helpful repro and the PR. Looks good! I'll merge and release a new version.

@yusukebe yusukebe merged commit 9a39a51 into honojs:main Jan 9, 2025
1 check passed
@github-actions github-actions bot mentioned this pull request Jan 9, 2025
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