-
-
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
adapter static+endpoint / adapter static + refresh page #4142
Comments
|
We're seeing this with the next-29 static adapter and |
@Maxim-and-Ko, @dulyas current build locally outputs
adding
|
You may want to try setting |
@benmccann tried that first and had the same 404 result, did that change recently? |
The @dulyas you can't use |
|
I don't know what it is you're facing @Maxim-and-Ko but you will need to open a separate issue with a reproduction if you want to get help — please don't hijack other people's issues. I would assume that |
@Rich-Harris based on current behavior, the |
Right, the behaviour changed. That's why you saw this message:
|
yeah I just tried again with a fresh app and see the messaging now. Thanks @Rich-Harris 👍 |
#4287 has been opened to have a more helpful build-time message about using the static adapter with a dynamic app, so I'm closing this issue. It's hard to pick through all the other unrelated discussions that was happening here, but it sounded to me like it was usage questions, and not reproducible bugs. |
Describe the bug
after last npm update after run build everythink is ok on npm run preview but if if deploy my site on hosting and refresh any not main page i got 403/404
also i need POST method on my form with endpoint and after run build on run preview its ok, but after deploy i got 404 on my index.json.js, index.js, api/, api/index.json etc have no idea what to do help pls
Reproduction
npm init svelte@next my-app // select test app
cd my-app
npm install
npm run dev -- --open
npm i @sveltejs/adapter-static
change adapter on svelteconfig
npm run build
npm run preview - everythink is ok
deploy on host - cant refresh pages and not todo app
Logs
No response
System Info
Severity
blocking all usage of SvelteKit
Additional Information
No response
The text was updated successfully, but these errors were encountered: