I have developed a Shopify app in Remix template and hosted it on a VPS.
After creating a build, I can serve using Nginx to a particular location by passing the port where the Remix app is running.
Everything works fine but the app keeps logging the same error on loop and never stops. The error is:
POST /admin/config.php 404 - - 6.879 ms
Error: No route matches URL "/admin/config.php"
at getInternalRouterError (/home/username/apps/myapp/remix-app/node_modules/@remix-run/router/router.ts:4377:5)
at Object.query (/home/username/apps/myapp/remix-app/node_modules/@remix-run/router/router.ts:2856:19)
at handleDocumentRequestRR (/home/username/apps/myapp/remix-app/node_modules/@remix-run/server-runtime/dist/server.js:168:35)
at requestHandler (/home/username/apps/myapp/remix-app/node_modules/@remix-run/server-runtime/dist/server.js:93:24)
at /home/username/apps/myapp/remix-app/node_modules/@remix-run/express/dist/server.js:42:28
at processTicksAndRejections (node:internal/process/task_queues:95:5)
ErrorResponseImpl {
status: 404,
statusText: 'Not Found',
internal: true,
data: 'Error: No route matches URL "/admin/config.php"',
error: Error: No route matches URL "/admin/config.php"
at getInternalRouterError (/home/username/apps/myapp/remix-app/node_modules/@remix-run/router/router.ts:4377:5)
at Object.query (/home/username/apps/myapp/remix-app/node_modules/@remix-run/router/router.ts:2856:19)
at handleDocumentRequestRR (/home/username/apps/myapp/remix-app/node_modules/@remix-run/server-runtime/dist/server.js:168:35)
at requestHandler (/home/username/apps/myapp/remix-app/node_modules/@remix-run/server-runtime/dist/server.js:93:24)
at /home/username/apps/myapp/remix-app/node_modules/@remix-run/express/dist/server.js:42:28
at processTicksAndRejections (node:internal/process/task_queues:95:5)
}
What’s the reason for this and how can I stop this from happening?
Any help would be appreciated.
Regards,
Ahmed Khan