- Install dependencies.
npm install
- Run the project for local dev. This will start a hot-reloading server at
localhost:3000
.
npm run dev
npx netlify-cms-proxy-server
- Build the app for server-side rendered deployment. See more about Universal SSR in the Nuxt.js docs.
npm run build
# And to serve that deployment...
npm run start
- Generate a fully pre-rendered static site. See more in the docs.
npm run generate
-
Copy and change the .env-file
cp .example.env .env
- Then change the values
-
Install git-lfs on your computer and remove the
#
in the project's.gitattributes
-
Setup Netlify LM by following these steps. (In short:
netlify plugins:install netlify-lm-plugin
→netlify lm:install
→netlify login
→netlify link
→netlify lm:setup
→ commit the.lfsconfig
file.)
-
I added a CSS class, but it doesn't show
-
It is most likely purged by PurgeCSS, make sure it is whitelisted in
purgeCSS
innuxt.config.js
-
I can’t log in to
/admin
on localhost and use my local git as CMS -
Open up a new terminal and run
npx netlify-cms-proxy-server
, the login again. -
I tried logging into/saving in Netlify CMS, but I can't
-
It may be that you haven't enabled Netlify Identity or setup the Git Gateway correctly, check the docs
-
I get Netlify emails but can't use them to login etc.
-
It is probably because the 'netlify-identity-widget' is only included in the
/admin
-page. Follow the advice here or enable the included email-templates’ paths in Netlify, under Site Settings > Identity > Emails and there you can set/static/emails/THE_TEMPLATE_NAME.html
for each template. This will make sure to use the correct links inside the emails. Look at @audetcameron’s screenshot here. -
"This repository is configured for Git LFS but 'git-lfs' was not found on your path."
-
Install git-lfs then run
git lfs install
in project root. Then to download the images, rungit lfs pull
. Or if you don't want to download the files/can't login to the lfs server, rungit lfs install --skip-smudge
instead. -
I can’t get Git LFS to run correctly on Netlify
-
Make sure that you have in your Netlify build settings, set the environment variable
GIT_LFS_ENABLED
:true
. Then also make sure that Netlify LM is setup as their docs specify.