Skip to content

ly2011/nuxt-blog

Repository files navigation

nuxt-blog

My stunning Nuxt.js project

Build Setup

# install dependencies
$ yarn install

# serve with hot reload at localhost:3000
$ yarn run dev

# build for production and launch server
$ yarn run build
$ yarn start

# generate static project(需先执行这个,才能部署到github-pages)
$ yarn run generate

# deploy static project
--$ yarn run deploy--
$ git subtree push --prefix=dist origin gh-pages

ERROR

  1. Error: [vuex] Do not mutate vuex store state outside mutation handlers
  2. /topic/:id 接口有缓存,造成读取的 is_collectfalse

[nuxt 部署至 GitHub Pages]

  1. 如何用 Github 的 gh-pages 分支展示自己的项目
  2. Website not built properly after running 'nuxt generate'
  3. https://github.com/Zurnaz/nuxt-example/blob/master/nuxt.config.js
  4. https://github.com/rockcs1992/Personal-Website/blob/master/nuxt.config.js

参考文档

  1. 路由