This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
honoApp.get('*', async c => {
try {
// react, solid, etc
const app = await renderClientApp(<App />);
return new Response(app, { headers: { 'Content-Type': 'text/html' } });
} catch (err: any) {
// in dev, pass the error back to the vite dev server to display in the error overlay
if (import.meta.env.DEV) return err;
throw err;
}
});
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@hono/vite-dev-server@0.5.0
Minor Changes
#63
10a7ab5da5e61cf314cc7566ddfa53552bf3172a
Thanks @marbemac! - Leverage vite error handling. To leverage this, return client errors in development like in the example below: