Skip to content

Commit c89aac3

Browse files
committed
feat: improve found routes logging and bump x2
1 parent 3316381 commit c89aac3

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ module.exports = nextConfig;
6161
> This tool generates a standalone bundle with no backend.
6262
> - **Server Logic:** Features like Server Actions, `cookies()`, and Middleware are not supported.
6363
> - **Dynamic Routes:** You must use `generateStaticParams` for any dynamic paths (e.g., `[id].tsx`) to ensure they are pre-rendered into the `out/` directory before bundling.
64-
> - **RSC:** React Server Components are supported only insofar as they can be statically rendered to HTML at build time.
64+
> - **RSC:** React Server Components are supported if they can be statically rendered to HTML at build time.
6565
6666
### 2. Build Your Next.js App
6767

index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ const { inputDir, outputFile } = parseArgs();
3333
console.log(`📖 Parsing Next.js output from: ${inputDir}`);
3434
const parsed = await parseNextOutput(inputDir);
3535

36-
console.log(`📦 Found ${parsed.routes.length} routes:`, parsed.routes.map((r: { path: string }) => r.path));
36+
console.log(`📦 Found ${parsed.routes.length} routes:`);
37+
for (const route of parsed.routes) {
38+
console.log(` ${route.path}`);
39+
}
3740

3841
console.log(`🔧 Inlining assets...`);
3942
const inlined = await inlineAssets(parsed);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "next-single-file",
3-
"version": "1.0.2",
3+
"version": "1.0.4",
44
"description": "Convert Next.js static export to a single HTML file with hash routing",
55
"bin": {
66
"next-single-file": "dist/cli.js"

0 commit comments

Comments
 (0)