Solved

Why isn't routing working on the new Shopify node app template?

Hasan_Dev
Shopify Partner
4 0 5

I am working on a shopify node app. I am using the boiler template provided by shopify cli https://github.com/Shopify/shopify-app-template-node . However the new shopify boiler template does not contain pages folder and I am having trouble understanding how I can route to different pages as previously there used to be pages folder with next.js and every file within it can be routed. Can anybody help? . Thanks

Accepted Solution (1)

toobiza
Shopify Partner
35 5 7

This is an accepted solution.

Check out this git repo which shows how to create router based on the basic boilerplate app given by Shopify.

 

https://github.com/kinngh/shopify-node-express-mongodb-app/blob/main/src/GlobalRoutes.jsx

View solution in original post

Reply 1 (1)

toobiza
Shopify Partner
35 5 7

This is an accepted solution.

Check out this git repo which shows how to create router based on the basic boilerplate app given by Shopify.

 

https://github.com/kinngh/shopify-node-express-mongodb-app/blob/main/src/GlobalRoutes.jsx