NuxtN
Nuxt5mo ago
4 replies
Shay Rosenfeld

Deployment of NuxtJS 3 on cPanel

anyone deployed nuxtjs with pm2 on capnel and can point in the right direction? I have set up proxy server as required and it works, but the nuxt give me this error:
TypeError: Invalid URL
0|[app-name] |     at new URL (node:internal/url:825:25)
0|[app-name] |     at getRequestURL (file:///home/[username]/[path-to-your-app]/.output/server/chunks/nitro/nitro.mjs:1068:10)
0|[app-name] |     at defaultHandler (file:///home/[username]/[path-to-your-app]/.output/server/chunks/nitro/nitro.mjs:5440:15)
0|[app-name] |     at defaultNitroErrorHandler (file:///home/[username]/[path-to-your-app]/.output/server/chunks/nitro/nitro.mjs:5430:17)
0|[app-name] |     at errorHandler (file:///home/[username]/[path-to-your-app]/.output/server/chunks/nitro/nitro.mjs:5494:13)
0|[app-name] |     at processTicksAndRejections (node:internal/process/task_queues:105:5)
0|[app-name] |     at Server.toNodeHandle (file:///home/[username]/[path-to-your-app]/.output/server/chunks/nitro/nitro.mjs:2200:9) {
0|[app-name] |   code: 'ERR_INVALID_URL',
0|[app-name] |   input: '/',
0|[app-name] |   base: 'https://[your-domain], [your-domain]'
0|[app-name] | }


on the nuxt app itself (the domain), this is what I see:
{
  "statusCode": 500,
  "stack": []
}


The include.conf files in the server on ssl/2_4/cpaneluser/domain and std/2_4/cpaneluser/domain are correctly configured
Was this page helpful?