mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-10 00:52:40 +00:00
Fixed Node.js cannot start issue
This commit is contained in:
2
backend/src/vendor/express.js
vendored
2
backend/src/vendor/express.js
vendored
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user