1.3 KiB
1.3 KiB
Skyline Console Settings Reference
Prepare a usable backend
- Prepare an accessible backend, for example:
https://172.20.154.250 - Modify the corresponding configuration in
config/webpack.dev.js:
if (API === 'mock' || API === 'dev') { devServer.proxy = { '/api': { target: 'https://172.20.154.250', changeOrigin: true, secure: false, }, }; }- Prepare an accessible backend, for example:
Configure access host and port
- Modify
devServer.hostanddevServer.port - Modify the corresponding configuration in
config/webpack.dev.js
const devServer = { host: '0.0.0.0', // host: 'localhost', port: 8088, contentBase: root('dist'), historyApiFallback: true, compress: true, hot: true, inline: true, disableHostCheck: true, // progress: true };- Modify
Execute in the project root directory, which is the same level as
package.jsonyarn run devUse the
hostandportconfigured inconfig/webpack.dev.jsto access, such ashttp://localhost:8088The front-end real-time update environment used for development is done.