console-ui/README.md
The legacy Nacos console frontend, built with React + Webpack 4.
npm install -g cross-env webpack webpack-cli
npm install
npm start
Proxy configuration is in build/webpack.dev.conf.js under the proxy property:
proxy: [{
context: ['/'],
changeOrigin: true,
secure: false,
target: 'http://ip:port',
}],
npm run build
Build output goes to the dist/ directory.
Note: Node.js 17+ requires the
--openssl-legacy-providerflag (already configured in the package.json build script).
Copy build artifacts to the backend static resources directory:
rm -rf ../console/src/main/resources/static/legacy/*
cp -r dist/* ../console/src/main/resources/static/legacy/
Deployed directory structure:
console/src/main/resources/static/legacy/
├── index.html
├── css/
└── js/
Build artifacts use relative paths (../), adapting to any nacos.console.contextPath configuration value. No rebuild is needed for different contextPath settings.