Next.js Discord

Discord Forum

Static build/export

Unanswered
Basset Hound posted this in #help-forum
Open in Discord
Basset HoundOP
I am try to do a static build for nextjs so that I want to run this directly like a .html file with browser.
as per nextjs website documentation , I added output: 'export' in file named next.config.ts.
I am using tailwind & TS and images for <Images />in next
when I try to do a build I was able to generate the html files , but styling and images are getting lost in the process.

To verify this I also did with a blank fresh project and issue is the same.
Not able to solve this issue.
Using these :
"next": "15.0.1",
"react": "19.0.0-rc-69d4b800-20241021",
"react-dom": "19.0.0-rc-69d4b800-20241021",

0 Replies