Browse Source

ip params

master
巴林闲侠 2 years ago
parent
commit
8dc163fdb2
  1. 3
      code/api/config.js
  2. 2
      code/web/package.json

3
code/api/config.js

@ -48,7 +48,8 @@ const product = {
entry: require('./app').entry,
opts: {
exclude: [// 不做认证的路由,也可以使用 exclude: ["*"] 跳过所有路由
{ p: '/cross_token/check', o: 'POST' }
{ p: '/cross_token/check', o: 'POST' },
{ p: '/user/:userId/message', o: 'GET' }
],
redis: {
host: IOTA_REDIS_SERVER_HOST,

2
code/web/package.json

@ -7,7 +7,7 @@
"test": "mocha",
"start-vite": "cross-env NODE_ENV=developmentVite npm run start-params",
"start": "cross-env NODE_ENV=development npm run start-params",
"start-params": "node server -p 5200 -u http://10.8.30.24:4200",
"start-params": "node server -p 5200 -u http://10.8.30.34:4200",
"deploy": "export NODE_ENV=production&& npm run build && node server",
"build-dev": "cross-env NODE_ENV=development&&webpack --config webpack.config.js",
"build": "export NODE_ENV=production&&webpack --config webpack.config.prod.js"

Loading…
Cancel
Save