Nuxt.js + Netlify CMS project
Visit: https://epic-bhaskara-02f420.netlify.com/
-
If the live deploy fails, go to : netlify -> deploys -> trigger deploy -> clear cache and deploy site
-
after publishing something from the gui you need to run "git pull" and "npm run serve" to get the changes. Same applies for both localhost:3000/admin and domain/admin
-
after tweaking nuxt.config.js you need to restart your live server, or wait a bit longer
-
netlify's build minification is kinda buggy so avoid using it.
-
go to netlify: settings -> build and deploy -> build command : npm run generate -> publish dir : dist/
# install dependencies
$ npm install # Or yarn install
# serve with hot reload at localhost:3000
$ npm run dev
# build with server-side rendering for production
# and start server
$ npm run build
$ npm start
# generate static project for production
$ npm run generate
See starter template documentation in the README on GitHub for additional usage and configuration.
Access yourwebsite.com/admin
, e.g. localhost:3000/admin
.
- https://git-lfs.github.com/
- https://www.netlifycms.org/docs/netlify-large-media/
- https://www.netlify.com/docs/large-media/
sudo npm install netlify-cli -g
metlify login
netlify plugins:install netlify-lm-plugin
netlify lm:setup
# the last command produces an output command which you should run
- To see your config run "cat .gitattributes"
- netlify cli stores your auth token localy here: "~/.netlify/config.json"
- to download the images handled by git lfs locally, remove them from /static/images/uploads/*, and then "git checkout ."
(They are auto generated)
- node_modules/
- dist/
- .nuxt/