Default route with node embedded app

I am working on an embedded Node application using the default boilerplate code that Spotify provides. The app is able to run and defaults to the pages/index.js react template and renders it on the page.

At this point it is very unclear how this routing actually happens. I am guessing that this happens within the App Bridge or one of these other tools. I attempted to go through the documentation for App Bridge, Polaris, etc but have not really found any answers to how this works or how to configure this.

Could anyone provide any insights?

Hi :waving_hand:

The code generated by the Shopify CLI is currently using the Next.js framework.

This framework uses a File System based router.

So when a file is added under the Pages directory is is available as a route.

You can learn more about the routing in the Next.js documentation!

1 Like

Exactly what I was looking for. Thank you!