Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Remix app with Proxy public route doesn't work properly (404 for assets, js, etc)

Remix app with Proxy public route doesn't work properly (404 for assets, js, etc)

ConstantineDev
Shopify Partner
9 0 2

There is a problem with Remix app template https://github.com/Shopify/shopify-app-template-remix.

I try to create custom app for my personal goals where I need 2 public pages.
I use 2 type of public pages;

  1. liquid - theme embed app
  2. html page - without theme layout simple page with some functionality

Here is the problem: 

When I go to page /app/my-app-name/custom-page I see that HTML was rendered because SSR works fine.
But all the app assets like js and css doesn't loaded because of build folder path problem, it directs to /build folder instead of /app/my-app-name/build

How can I fix it? 

I use this article https://shopify.dev/docs/apps/getting-started/build-qr-code-app?framework=remix - step by step, but it doesn't works properly.

Looks like there is a bug, and template doesn't works properly.

 

Help me please, I try to rewrite URLs, but no luck.

 

This looks like huge bug in remix app template.

Replies 2 (2)

justabu
Shopify Partner
1 0 0

Hi @ConstantineDev  any luck with this issue?

ConstantineDev
Shopify Partner
9 0 2

No.
Check this - https://github.com/Shopify/shopify-app-template-remix/issues/436. But it is only for full-page apps. I tried it; it works in development, but not on the production server.
For liquid better use client-only app.