mirror of https://github.com/fantasticit/think.git
chore: update default port
This commit is contained in:
parent
fa8cf77ab4
commit
87635e88cf
|
@ -2,7 +2,7 @@ const { getConfig } = require('@think/config');
|
|||
const config = getConfig();
|
||||
const cli = require('next/dist/cli/next-dev');
|
||||
|
||||
const port = (config.client && config.client.port) || 5002;
|
||||
const port = (config.client && config.client.port) || 5001;
|
||||
|
||||
try {
|
||||
cli.nextDev(['-p', port]);
|
||||
|
|
|
@ -2,7 +2,7 @@ const { getConfig } = require('@think/config');
|
|||
const config = getConfig();
|
||||
const cli = require('next/dist/cli/next-start');
|
||||
|
||||
const port = (config.client && config.client.port) || 5002;
|
||||
const port = (config.client && config.client.port) || 5001;
|
||||
|
||||
try {
|
||||
cli.nextStart(['-p', port]);
|
||||
|
|
Loading…
Reference in New Issue