GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — :pushpin: lower script version · nullstack/nullstack@013d4e4

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • scripts
    • index.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎scripts/index.js‎

Copy file name to clipboardExpand all lines: scripts/index.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ const customConfig = path.resolve(process.cwd(), './webpack.config.js');
99
const config = existsSync(customConfig) ? require(customConfig) : require('../webpack.config');
1010
const dotenv = require('dotenv')
1111

12-
const buildModes = ['ssg', 'spa', 'ssr']
13-
1412
function getConfig(options) {
1513
return config.map((env) => env(null, options))
1614
}
@@ -36,7 +34,9 @@ async function start({ input, port, env, mode = 'ssr', hot }) {
3634
envPath += `.${process.env.NULLSTACK_ENVIRONMENT_NAME}`
3735
}
3836
dotenv.config({ path: envPath })
39-
port ??= process.env['NULLSTACK_SERVER_PORT'] || process.env['PORT'] || 3000
37+
if (!port) {
38+
port = process.env['NULLSTACK_SERVER_PORT'] || process.env['PORT'] || 3000
39+
}
4040
process.env['NULLSTACK_ENVIRONMENT_MODE'] = mode
4141
console.log(` 🚀️ Starting your application in ${environment} mode...`);
4242
const WebpackDevServer = require('webpack-dev-server');

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.