Replies: 3 comments 3 replies
-
I also need this exact split 👍 |
Beta Was this translation helpful? Give feedback.
-
I'm statically exporting my next.js site, and need to export pages with the structure I've enabled |
Beta Was this translation helpful? Give feedback.
-
I fix this with patching Next package in yarn
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the feature you'd like to request
Today, the
trailingSlash
config option behaves so when navigating the app it add a "/" to every route, even if it didn't exist in the link. Thats expected behaviour. What it also does is, when exporting static .html files, it creates a subfolder with index.html files, so the routing is targeting the folder, and not the file.This are two different needs. When hosting on S3, we need the files in folders, so we can get nice and clean URL without .html. But we don't want the trailing slash.
Describe the solution you'd like
{ exportToSubFolders: true, trailingSlash: false }
This makes it possible to host files in folder, but still route/navigate to paths without the trailing slash.
Describe alternatives you've considered
You can try to add rewrite rules to your hosting platform, but adding two different options seems like a way more simpler and logic solution
Beta Was this translation helpful? Give feedback.
All reactions