issaafalkattan / react-landing-page-template-2021

A sleek plug n play react landing page template.
https://react-landing-page-template-2021.vercel.app
MIT License
513 stars 275 forks source link

Export static page #4

Closed bonndan closed 2 years ago

bonndan commented 2 years ago

I would like to export a static page to use with GitHub pages. build-prod produces something in the out directory, but an index.html file is missing. What do I have to do? I've already tried to add an export path map in next config, but to no sucess (module missing, 404 pages are generated containing the content, however).

Any advice?

phouverneyuff commented 2 years ago

I would like to export a static page to use with GitHub pages. build-prod produces something in the out directory, but an index.html file is missing. What do I have to do? I've already tried to add an export path map in next config, but to no sucess (module missing, 404 pages are generated containing the content, however).

Any advice?

Same here

issaafalkattan commented 2 years ago

This should be fixed now! Thanks for reporting!

For context, the issue was with how the pages folder was structured, it was missing a few files that are essential for next.js to map the correct routes in the build!

Will close for now, but please reopen the issue if the fix was not sufficient 😄 !