Remix route configuration specific to the Shopify app template

Hi guys!

I’m looking for a way to configure my routes in the Remix app template. I’d appreciate your help!

So the initial setup is as such:

app
  routes
    app.tsx  
    app._index.tsx     =>    /app   

I’m trying to nest a route in the index route and keep the routes organized in folders. This is what I came up with as per Remix conventions:

app
  routes
    app.tsx
    app
      _index.tsx
      impressions.tsx

(impressions.tsx being the nested route inside _index.tsx and added an in _index.tsx)

This doesn’t work. The file _index.tsx won’t render at all.

Any tips to organize the app route files are welcome!

1 Like

Having a similar problem. Did you fix it?

2 Likes

Unfortunately, not. Hopefully, someone does! :slightly_smiling_face: