Hydrogen storefront deployment to Netlify fails

Hi, when I deploy my storefront to Netlify I get the message “Page not found”.

I’m using the storefront API and would like to deploy it to Netlify.

In the docs it says that I should install an other remix adapter and delete remix-oxygen. After that it says to edit the server.js , remix.config.js , app/entry.server.jsx files. But i don’t know what to edit in these files, I’ve tried a lot but can’t seem to get it to work.

https://shopify.dev/docs/custom-storefronts/hydrogen/deployment

I came across a tutorial to deploy it to vercel but still can’t seem to figure it out with Netlify

https://shopifyhydrogen.io/blog/how-to-deploy-shopify-hydrogen-2-to-vercel

Thanks in advace!

Hi Roelj44,

Have you installed and configured Netlify’s hydrogen-platform plugin for your project? This is required by Netlify and there’s instructions on their docs you can follow. If this is still not working for you, let us know and we’ll look into this further.

Hope this helps,

Hi Liam,

Thanks for your response!

The docs say the hydrogen-platform plugin should be added to the vite.config file wich means they still use hydrogen 1.

Also, I can get the starter template to work https://github.com/netlify/hydrogen-netlify-starter but than again, that uses hydrogen 1 and doesn’t use remix.

I’ve tried using the starter template and than upgrading it to hydrogen 2, but that gets me the same problem I was in before

Looking forward to your reply!

This is VERY frustrating. Have you found a solution yet? I started months ago using hydrogen 1 with Sanity on Netlify. Everything works locally, but deploying to Netlify gets a 404.

No solution, but I started to developing with hydrogen-react and that works fine.
https://shopify.dev/docs/api/hydrogen-react