-
-
Notifications
You must be signed in to change notification settings - Fork 352
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
[Vercel] site doesn't load after deployment #1548
Comments
Can you provide a minimal reproduction starting from https://github.com/brillout/vike-with-vercel? I'll re-open then; in the meantime I'm inclined to think it's a user land issue, not a Vike issue. |
@brillout Thanks for quick response. Message from Vercel support in case it helps
|
@brillout Reproduced it with the repo you linked. Looks like build command executes twice again, which Vercel says is root cause of the site crashing. Website: https://vike-with-vercel-tau.vercel.app/ Here is the deployment logs
|
I cannot reproduce any issue: it successfully deploys. I'm also seeing that the |
From conversation with support
|
So, yea, the question very much seems to be why is Maybe there is an alternative other than using Keep us updated, it would be nice to update the Vike on Vercel example. |
Reverting back to standard build command worked! Tested with 2 projects. Thanks for help. |
This comment was marked as duplicate.
This comment was marked as duplicate.
Thanks for circling back on this. Btw. in case that's an option for your company, we're looking for sponsors. |
Description
When deployed, for unknown reason build command on vercel runs twice causing multiple JS files/assets to be created ( attached deployment logs from vercel).
This results in the site crashing due to loading assets from the incorrect build.
build.log
I also can reproduce it by running
vercel build && vercel deploy --prebuilt
locally.vite.config.ts
package.json
Website which crashes: https://greetai-platform-e55y8xyvi-greetai.vercel.app/
Note: some deployments with new commits work, redeploying doesn't work.
Note: project is inside monorepo packages/app
The text was updated successfully, but these errors were encountered: