Nodejs SPA Route Configuration

Ah! I see what is happening. You are using Node instead of PHP. That is the wrong way to add routes. I can recreate the issue here as well. Routes on a Node site should be set up using the routes panel, not the page/app routes.

Screenshot 2024-12-19 at 9.20.22 AM

App Routes should not be available in a Node project.

You probably used this tutorial .... it is for PHP and ASP only.

This tutorial is for PHP and ASP.NET server models. If you are using Nodejs, the. Please go to: Building SPA pages with NodeJS Setup

You needed to follow this one ...

1 Like