vuejs ssr 完美解決方案「vuex,axios,stylus,proxy 」
博客地址:https://shudong.wang/10227.html
😄🌹 vue ssr 完美解決方案,特性: 「vuex 」 「router 」 「 proxy 」 「 vuex 」 「 axios 」 「 ssr 」「 stylus 」「 bootstarp」 blog; 😊😊😊 都來到這裏了,點個star唄!👆👆👆💪
項目地址:https://github.com/wsdo/vue-s...
博客:
特性
- vuex
- router
- proxy
- vuex
- axios
- ssr
- stylus
- bootstarp
demo blog
已經完善的blog
安裝
npm i
開發模式
npm run dev
打包項目
npm run build
打包後運行
npm start
項目部署
npm run pm2
Nginx 反向代理
跨域代理
const proxyTable = {
'/v1': {
target: config.baseUrl,
changeOrigin: true
// pathRewrite: {
// '^/api': '/api'
// }
}
}
界面: