Look at the Content documentation to learn more.
Make sure to install the dependencies:
# yarn
yarn install
# npm
npm install
# pnpm
pnpm install --shamefully-hoist
Start the development server on http://localhost:3000
npm run dev
Build the application for production:
npm run build
Locally preview production build:
npm run preview
Checkout the deployment documentation for more information.
Why custom setup from scratch and not use template of Netlify? Because I wanted to use Vue3 and Netlify template currently only support Vue2.
- Setup Nuxt.js. Follow this guide https://content.nuxtjs.org/get-started.
- Integrate Netlify CMS: https://www.netlifycms.org/docs/nuxt/
- Don't forget to enable following options on Netlify (Can all be found under identity settings):
- Identify
- External Providers: github
- Github gateway
- Only enable registration by invite
- Setup Vuetify with Nuxt 3: https://codybontecou.com/how-to-use-vuetify-with-nuxt-3.html
Invite users via Netlify => Identify
User than get's invitation link. For the moment we need to change the link to take the /admin
part into account. So https://precious-palmier-eb57a6.netlify.app/#invite_token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
becomes https://precious-palmier-eb57a6.netlify.app/admin/#invite_token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
.
The user should then be presented with login.