-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
adapter-static
build with dynamic +page.server.ts
issue
#7244
Comments
This happens because of the |
Thanks for the quick reply, I will come back if I found a solution to bypass the problem :) (when I have time to look for it) edit:
I will continue to search for other solution since our production server doesn't allow us to edit nginx config so removing .html from the link does not work :'( |
* [fix] more info about prerendering errors Helps with #7183 and #7244 * Apply suggestions from code review * swap ternary around, remove dead code * small tweak * another minor tweak * drive-by-fix * tweak when prerender.entries suggestion appears * tweak * add strict option * Apply suggestions from code review Co-authored-by: Rich Harris <richard.a.harris@gmail.com> Co-authored-by: Rich Harris <hello@rich-harris.dev>
adapter-static
build with dynamic +page.server.ts
issue
Closing in favor of #8676 because of a more descriptive issue title etc |
Describe the bug
Hello,
I'm not really sure if it is a bug or a misusage on my part, but since migrating to the new page system, I can't build my static website with this error :
The reproduction is a simple example of what I'm doing on the real app with the same issue.
All the pre-rendered pages (all the page ^^) seem to be ok, I can preview the website with
npm run preview
.Removing the
+page.server.ts
of the dynamic folder remove the error.I did try it with nodejs 16 and 18.
I'm using .html in link for the static website to take the file (he does not find page without extension, this idiot ^^)
It was working fine before with those settings :
I'm hoping I did mention enough information :)
Thanks for the great framework.
Reproduction
https://gitlab.com/FredOpenscop/debug-sveltekit-static.git
Logs
System Info
Severity
blocking an upgrade
Additional Information
No response
The text was updated successfully, but these errors were encountered: