指定7001端口
Showing
... | ... | @@ -4,11 +4,11 @@ |
"description": "测试", | ||
"private": true, | ||
"scripts": { | ||
"dev-ssr": "cross-env ENV_CONFIG=dev ssr=true nuxt -o --port=3001", | ||
"dev-ssr-prod": "cross-env IS_LOCAL=1 ENV_CONFIG=pro ssr=true nuxt -o --port=3001", | ||
"dev-ssr": "cross-env ENV_CONFIG=dev ssr=true nuxt -o --port=7001", | ||
"dev-ssr-prod": "cross-env IS_LOCAL=1 ENV_CONFIG=pro ssr=true nuxt -o --port=7001", | ||
"start": "cross-env ENV_CONFIG=dev nuxt start --port=3001", | ||
"build": "cross-env ENV_CONFIG=dev ssr=true nuxt build -o --port=3001 && npm start", | ||
"build-prod": "cross-env ENV_CONFIG=pro ssr=true nuxt build -o --port=3001" | ||
"build": "cross-env ENV_CONFIG=dev ssr=true nuxt build -o --port=7001 && npm start", | ||
"build-prod": "cross-env ENV_CONFIG=pro ssr=true nuxt build -o --port=7001" | ||
}, | ||
"dependencies": { | ||
"@nuxtjs/axios": "^5.8.0", | ||
... | ... |
Please
register
or
sign in
to comment