forked from xiangwang25/whale-town-end-v2
fix: harden backend production deployment
This commit is contained in:
@@ -2,6 +2,8 @@ import { Injectable } from '@nestjs/common';
|
||||
import { ConfigService } from '@nestjs/config';
|
||||
import { AppStatusResponseDto } from './business/shared';
|
||||
|
||||
const packageJson: { version: string } = require('../package.json');
|
||||
|
||||
/**
|
||||
* 应用服务类
|
||||
*
|
||||
@@ -31,7 +33,7 @@ export class AppService {
|
||||
|
||||
return {
|
||||
service: 'Pixel Game Server',
|
||||
version: '1.1.1',
|
||||
version: packageJson.version,
|
||||
status: 'running',
|
||||
timestamp: new Date().toISOString(),
|
||||
uptime: Math.floor((Date.now() - this.startTime) / 1000),
|
||||
|
||||
Reference in New Issue
Block a user