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
Is your feature request related to a problem? Please describe.
Using Next and Next Export is a great way to generate a static site. Unfortunately, it is not possible to generate non HTML static assets. Adding a custom permalink would allow non important non HTML files. Examples include:
RSS (feed.xml)
robots.txt
Sitemap (sitemap.xml)
Netlify CMS Config (admin/config.yml)
Describe the solution you'd like
Add a function or parameter to set the custom permalink for a page. We could also consider making the render function of the React component return a string for the body.
Describe alternatives you've considered
You can generate these files outside of the Next.js build ecosystem but that seems like a lot of extra complexity to the developer experience.
I know that I can do that if I write the robots.txt by hand. I want the ability to generate static files at build time. I think the sitemap and RSS feed examples are more compelling to be honest.
While I think this would be incredibly valuable, here I have a solution that allows you to have a dynamically-generated sitemap that covers dynamic routes and static ones, as an interim solution of sorts:
Feature request
Is your feature request related to a problem? Please describe.
Using Next and Next Export is a great way to generate a static site. Unfortunately, it is not possible to generate non HTML static assets. Adding a custom permalink would allow non important non HTML files. Examples include:
Describe the solution you'd like
Add a function or parameter to set the custom permalink for a page. We could also consider making the render function of the React component return a string for the body.
Describe alternatives you've considered
You can generate these files outside of the Next.js build ecosystem but that seems like a lot of extra complexity to the developer experience.
Additional context
This idea was discussed in #9051
The text was updated successfully, but these errors were encountered: