-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feat] add prerender.createIndexFiles
option
#2632
[feat] add prerender.createIndexFiles
option
#2632
Conversation
🦋 Changeset detectedLatest commit: 8504a47 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
- Fixes sveltejs#1443 Setting the kit.prerender.subfolders to false (default is true) will change the filename generation from "/about/index.html" to "/about.html"
a2e29cf
to
3ee027c
Compare
✔️ Deploy Preview for kit-demo ready! 🔨 Explore the source changes: 8504a47 🔍 Inspect the deploy log: https://app.netlify.com/sites/kit-demo/deploys/61f48bebde7586000722dc17 😎 Browse the preview: https://deploy-preview-2632--kit-demo.netlify.app |
@Rich-Harris is attempting to deploy a commit to the Svelte Team on Vercel. A member of the Team first needs to authorize it. |
Thank you, and apologies for not getting round to this PR until now. One thing I'm not 100% sure about is the |
Apology is appreciated. if we change the config from a boolean to an enum, that show the intent better:
What do you think? |
I think a boolean makes more sense to be honest. We discussed in the maintainers chatroom and decided to go with |
prerender.createIndexFiles
option
Is I get an error:
I have this in
|
// src/routes/+layout.js
export const trailingSlash = 'always'; |
Fixes #1443
Usage in svelte.config:
Setting the
kit.prerender.subfolders
setting to false (default is true) will change the filename generation from "/about/index.html" to "/about.html"Inspiration for the
subfolders
name came from nuxt:https://nuxtjs.org/docs/configuration-glossary/configuration-generate/#subfolders