Code example for automatic page generation in Remix

@yang could we just deploy to Vercel? We use Plasmic loader with Vercel without any issues? https://shopify.dev/docs/custom-storefronts/hydrogen/deployment#deploy-to-non-oxygen-hosts-using-the-hydrogen-channel-or-cli

Yes, Vercel works great!

hi @fmota Is this the right LoaderFunction for Vercel?

I am still getting the EvalError: Code generation from strings disallowed for this context

Any chance this is deployed on Vercel edge runtime instead of the normal node runtime? (Edge is just using cloudflare)

:open_mouth: let me check

It’s just regular deployment with node from what I can tell

@fmota @yang We are completely stuck. Does Plasmic have any plans on updating the documentation for Shopify Hydrogen 2.0? Thanks!

Hey Jay, based on your last screenshot aren’t you trying to deploy to serverless functions ? I believe plasmic isn’t supported in this environment either.

Hi @scientific_porpoise, can you confirm you can clone and deploy this Remix app to Vercel? https://github.com/plasmicapp/remix-plasmic-demo

I just tried it here, but wanted to make sure you are able to start debugging what’s different with your own Remix app deployment: https://remix-plasmic-demo.vercel.app/mypage

(Serverless functions should work fine I believe)

You can also try doing the same thing with a brand new Remix app, setting up Plasmic in it, and deploying to Vercel - then diffing to see what’s going wrong with your project

hi @yang Yes, we cloned the Remix Vercel example app yesterday, and the Plasmic single page ‘mypage’ worked but unfortunately, we cannot get it to work in the Hydrogen branch. We are in the process of diffing now, but there is a mess of things wrong, including functions that need to be swapped out on the Hydrogen side to get the installation to work with Vercel. So in the end, we can get Plasmic + Remix, and Hydrogen + Remix to work on Vercel, but not Plasmic + Hydrogen + Remix. :disappointed: