You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is similar to the problem described at #48022 with the difference that I am NOT trying to get the pages to generate on the client side but using the server components.
Route (app) Size First Load JS
┌ ○ / 144 B 78.4 kB
└ ● /[slug] 144 B 78.4 kB
+ First Load JS shared by all 78.2 kB
├ chunks/577-df9cece816524ea8.js 25.9 kB
├ chunks/d203b3d2-b46a1724b277c296.js 50.5 kB
├ chunks/main-app-65354122b08a6c70.js 215 B
└ chunks/webpack-bf1a64d1eafd2816.js 1.61 kB
Route (pages) Size First Load JS
─ ○ /404 182 B 75.8 kB
+ First Load JS shared by all 75.6 kB
├ chunks/framework-ef9abeff5a10c2f8.js 45 kB
├ chunks/main-c64c5a20bceb8890.js 28.8 kB
├ chunks/pages/_app-3ace18660f5d57f8.js 195 B
└ chunks/webpack-bf1a64d1eafd2816.js 1.61 kB
○ (Static) automatically rendered as static HTML (uses no initial props)
● (SSG) automatically generated as static HTML + JSON (uses getStaticProps)
Expected Behavior
I expect a static HTML file out/crs.html to be generated. This does not happen. Instead the following files appear in the /out folder:
When I try to serve the content of the out folder (eg. php -S localhost:9001 -t ./out) and navigate to http://localhost:9001/crs I should see the same result as if I do that in development
Instead I get a blank screen:
This is just a very simplified use-case, In the real life, there is a list of pages provided by decap-cms and I need these to be generated as static HTML files according to the slug provided by the CMS. I have no need for client-side data fetching. All the data necessary for the pages are provided in the server component.
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
The text was updated successfully, but these errors were encountered:
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Verify canary release
Provide environment information
Operating System: Platform: darwin Arch: x64 Version: Darwin Kernel Version 22.6.0: Wed Jul 5 22:21:56 PDT 2023; root:xnu-8796.141.3~6/RELEASE_X86_64 Binaries: Node: 18.15.0 npm: 9.5.0 Yarn: 3.5.0 pnpm: N/A Relevant Packages: next: 13.4.12 eslint-config-next: N/A react: N/A react-dom: N/A typescript: N/A Next.js Config: output: N/A
Which area(s) of Next.js are affected? (leave empty if unsure)
Static HTML Export (output: "export")
Link to the code that reproduces this issue or a replay of the bug
https://github.com/crs1138/nextjs-reproduction-output-export
To Reproduce
yarn
yarn build
php -S localhost:9001 -t ./out
Describe the Bug
This is similar to the problem described at #48022 with the difference that I am NOT trying to get the pages to generate on the client side but using the server components.
Expected Behavior
I expect a static HTML file
out/crs.html
to be generated. This does not happen. Instead the following files appear in the/out
folder:When I try to serve the content of the
out
folder (eg.php -S localhost:9001 -t ./out
) and navigate to http://localhost:9001/crs I should see the same result as if I do that in developmentInstead I get a blank screen:
This is just a very simplified use-case, In the real life, there is a list of pages provided by decap-cms and I need these to be generated as static HTML files according to the slug provided by the CMS. I have no need for client-side data fetching. All the data necessary for the pages are provided in the server component.
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
The text was updated successfully, but these errors were encountered: