SvelteKit + Bun + Google Cloud Run #11114
Replies: 5 comments 1 reply
-
Please confirm that Bun + SvelteKit run without issue locally with |
Beta Was this translation helpful? Give feedback.
-
Hi @steren - thanks for taking a look. I can confirm that docker builds, and runs.. But the exact same error occurs locally as it does on Cloud Run (upon GET): ![]() |
Beta Was this translation helpful? Give feedback.
-
If this error makes the container crash locally, it's very likely the error has nothing to do with Cloud Run but is within Bun running SveltKit. I recommend opening an issue for Bun instead of SveltKit. |
Beta Was this translation helpful? Give feedback.
-
Problem solved.. Needed to set the ORIGIN env.. in package.json scripts:
|
Beta Was this translation helpful? Give feedback.
-
What is requiring this env var? SvelteKit? Why? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Has anyone gotten these 3 to play together nicely? I'm working on just a boilerplate, with no luck.
Code: https://gitlab.com/coeyman/sveltekit-bun-cloudrun-boilerplate
It deploys fine, but errors on request:

Beta Was this translation helpful? Give feedback.
All reactions