Changed default port, added comment, fix for using mikro-orm with typescript

This commit is contained in:
2025-02-14 22:36:41 +01:00
parent fc91eb9873
commit 3f8d36db5a
5 changed files with 64 additions and 44 deletions

View File

@ -6,7 +6,7 @@ class config {
// Server configuration
static ENV: string = process.env.ENV || 'development'
static HOST: string = process.env.HOST || '0.0.0.0'
static PORT: number = process.env.PORT ? parseInt(process.env.PORT) : 6969
static PORT: number = process.env.PORT ? parseInt(process.env.PORT) : 4000
static JWT_SECRET: string = process.env.JWT_SECRET || 'secret'
static CLIENT_URL: string = process.env.CLIENT_URL ? process.env.CLIENT_URL : 'https://noxious.gg'

View File

@ -34,6 +34,8 @@ export default class MapRequestEvent extends BaseEvent {
await mapRepository.getEntityManager().populate(map, mapRepository.POPULATE_MAP_EDITOR as any)
// Remove map.mapEventTiles.teleport.toMap and add map.mapEventTiles.teleport.toMapId
return callback(map)
} catch (error: any) {
this.logger.error('gm:map:request error', error.message)