port config oops

This commit is contained in:
amy 2024-12-03 00:48:23 +03:30
parent 9e0946d80e
commit ac76ce6988
Signed by: amy
SSH key fingerprint: SHA256:Y6VEv6ZOxI6zqjjOF4luhfaCoY+zDK0w62P+qhQYie4

View file

@ -112,7 +112,7 @@ fastify.get('/', async (request, reply) => {
})
fastify.listen({port: PORT}, (err, address) => {
fastify.listen({port: Number(PORT)}, (err, address) => {
if (err) {
fastify.log.error(err)
process.exit(1)