-
Can I deploy Shopify Hydrogen app to Vercel with default Vite config? I tried button getting a 404 error. |
Beta Was this translation helpful? Give feedback.
Replies: 11 comments 20 replies
-
Hydrogen apps can run on Vercel. There are some examples here:
|
Beta Was this translation helpful? Give feedback.
-
Good news! Zero-configuration support for deploying Hydrogen on Vercel has just landed 🎉 |
Beta Was this translation helpful? Give feedback.
-
I'm still getting 404 on vercel with the demo project. |
Beta Was this translation helpful? Give feedback.
-
Sorry I posted this in 2 issues by accident. |
Beta Was this translation helpful? Give feedback.
-
I got the 404 with the Vite preset (vercel didn't detect hydrogen for some reason) |
Beta Was this translation helpful? Give feedback.
-
I was able to create a hydrogen project from the vercel "template gallery" but it was the typescript one (I wanted the javascript one which I guess doesn't work on Vercel yet). |
Beta Was this translation helpful? Give feedback.
-
Has anyone been able to solve this? I've had to use the out-of-the-box Vercel solution instead which is good anyway - https://vercel.com/changelog/hydrogen-projects-can-now-be-deployed-with-zero-configuration |
Beta Was this translation helpful? Give feedback.
-
Hello! |
Beta Was this translation helpful? Give feedback.
-
It auto-selects Vite as project type, but change it to Hydrogen in settings and it works |
Beta Was this translation helpful? Give feedback.
-
I tried pretty much everything in this thread... added env variables and project type changed to hydrogen. I'm able to run locally (after adding .env file), but can't get deployed to vercel, also get 404. No problems with the TypeScript version. |
Beta Was this translation helpful? Give feedback.
-
For anyone else reading this, you can set a callback function instead of an object It helped me debug and figure out what I needed. I figured out that vite is also looking at the env vars and not loading some of them. Here's the monstrosity I ended up with :) edit: also had to switch my app type in the vercel dashboard.
config with vite
|
Beta Was this translation helpful? Give feedback.
Good news! Zero-configuration support for deploying Hydrogen on Vercel has just landed 🎉