Open sho-hata opened 1 week ago
0.1.26
npm create hono@latest
x-basic
vite.config.ts
bun run build
index.html is output to dist/.
dist/
dist ├── .vite ├── articles ├── static ├── _routes.json ├── _worker.js ├── favicon.ico └── index.html
index.html is not output to dist/. No error message will be displayed.
dist ├── .vite ├── articles ├── static ├── _routes.json ├── _worker.js └── favicon.ico
error.tsx
_error.tsx
Maybe it has something to do with this issue: https://github.com/honojs/honox/issues/234
What version of HonoX are you using?
0.1.26
What steps can reproduce the bug?
npm create hono@latest
x-basic
vite.config.ts
as in https://github.com/honojs/honox?tab=readme-ov-file#ssg---static-site-generationbun run build
What is the expected behavior?
index.html is output to
dist/
.What do you see instead?
index.html is not output to
dist/
. No error message will be displayed.Additional information
error.tsx
, ssg build is successfully performed and index.html is generated_error.tsx
file generated by the honox template is treated as a special file in hono because it's used for creating custom error handlers. https://github.com/honojs/honox/blob/034cd200655308881f3557bef8fca441b07c7f9c/src/server/server.ts#L192 I suspect that this might be affecting the SSG build process.