Web Server won't deploy

I’m trying to deploy my app. My app is a bit different I want to deploy the vite local dev server in production. It’s building fine but I don’t know how to get my external URL to point to the dev server. It works fine locally but I’m getting this error in production

Aug 12 03:53:28 PM  Error: listen EACCES: permission denied 0.0.0.0:443
Aug 12 03:53:28 PM      at Server.setupListenHandle [as _listen2] (node:net:1363:21)
Aug 12 03:53:28 PM      at listenInCluster (node:net:1428:12)
Aug 12 03:53:28 PM      at Server.listen (node:net:1516:7)
Aug 12 03:53:28 PM      at Server.httpServer.listen (file:///opt/render/project/src/node_modules/vite/dist/node/chunks/dep-71eb12cb.js:59272:20)
Aug 12 03:53:28 PM  error Command failed with exit code 1.
Aug 12 03:53:28 PM  info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Aug 12 03:53:28 PM  ERROR: "dev:vite" exited with 1.
Aug 12 03:53:28 PM  error Command failed with exit code 1.
Aug 12 03:53:28 PM  info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Any ideas?

It may be because you are trying to listen on a privileged port. Could you try listening on a port greater than 1024?

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.