Fixed Node.js cannot start issue

This commit is contained in:
Peng-YM
2022-05-26 11:17:36 +08:00
parent a9afae92c5
commit 8dbeb8eff3
3 changed files with 4 additions and 4 deletions

View File

@@ -2,7 +2,7 @@
import { ENV } from './open-api';
export default function express({ substore: $, port }) {
port = port || process.env.PORT || 3000;
port = port || 3000;
const { isNode } = ENV();
const DEFAULT_HEADERS = {
'Content-Type': 'text/plain;charset=UTF-8',