fix(templates): pass PORT into next in custom servers (#6807)

Closes https://github.com/payloadcms/payload/issues/4800

- [x] Chore (non-breaking change which does not add functionality)
This commit is contained in:
Paul
2024-06-17 11:14:34 -04:00
committed by GitHub
parent 015aafda75
commit fb4ef6fc0f
3 changed files with 3 additions and 0 deletions

View File

@@ -38,6 +38,7 @@ const start = async (): Promise<void> => {
const nextApp = next({
dev: process.env.NODE_ENV !== 'production',
port: PORT,
})
const nextHandler = nextApp.getRequestHandler()