-
-
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
404 Error when deploying to Vercel #3142
Comments
same issue as #3143, closing (even though this was first :) |
actually this might not be a dupe, reopening |
I don't know if this helps but overriding the output folder in Vercel deployment settings allows the build to complete but the root folder structure in Vercel is just a 'server' and 'static' folder & 'routes-manifest.json' file. So my guess is that it doesn't know where the app starts, hence the 404 page. |
Can you try with |
@sveltejs/adapter-vercel@1.0.0-next.34 This indeed solve my problem. Thanks! |
This ain't working for me either. Am I missing something here? package.json Error Log on Vercel
|
Describe the bug
With the new API changes that were done (#3133), the new output folder is '.output' instead of '.vercel_build_output' and Vercel doesn't seem to know what to do with that.
I have the preset set to Sveltekit and had to do a manual override on the output folder to '.vercel_build_output' for it to work. Now, I followed the Vercel guide for the file system api (https://vercel.com/docs/file-system-api), and my deployments just go to a 404 page. I also added the manual output override to '.output' but the deployments fail if I do that.
I understand that this might be a Vercel thing instead of SvelteKit. If so, then let me know and I will head over there.
Thanks.
Reproduction
I don't have a public repo available, sorry.
Logs
No response
System Info
Severity
blocking an upgrade
Additional Information
No response
The text was updated successfully, but these errors were encountered: