Server side publish looking for file path equivalent to local development server

I published my test app in production server (PHP/MySQL). However it failed to load data from the database.

Below is the screenshot of console:

As you can see there are multiple 404 not found errors.

When I checked the url, it is using the same base path as in local server. Why the base path didn’t get updated according to the production base path.

I checked the target for production, and it is configured properly with correct production path.

Community Page
Last updated: