How to generate a dynamic index page when using Next export (for static s3 hosting) #26743
Unanswered
wayne-lincoln
asked this question in
Help
Replies: 1 comment
-
Actually to clarify on |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey there,
Just had a question regarding how to instruct Next to dynamically generate the root index.html page so we can host in an S3 bucket.
We have a
[[...slug]].tsx
file that handles all of the static path generation, as well as fetching the static props for our website pages, but I'm having an issue with configuring our home page in the CMS to be generated as the root index.html page.Our home page has a slug of
home
in the headless CMS, so at first I tried passing[]
to the slug param in getStaticPaths when it encounters the page with the home slug, which seems to build fine but then when runningnext export
I'd get the error:Is there something simple I'm missing from a config standpoint, or something else I'm missing?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions