Remix route configuration specific to the Shopify app template

Remix route configuration specific to the Shopify app template

mehmettekn
Shopify Partner
3 0 0

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 <Outlet/> 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!

Replies 0 (0)