These instructions are for configuring your website from netlify.
- Have already set up nuxt and added an admin
index.htmlandconfig.yml - Add the Netlify identity widget to your
pages/index.vuefile if you already havent
export default {
head() {
return {
script: [{ src: 'https://identity.netlify.com/v1/netlify-identity-widget.js' }],
};
},
};
- Push your repo to github
- Set up an account on Netlify (this will be your default login on your website as well)
- Select
New site from Git- Connect to github
- Add your project repo
- **if you cannot access it, click
configure the Netlify app on Github - From there you can choose to make all your repos available, or just the one that you want to select
- **if you cannot access it, click
- Now your repo should be added to a netlify project
- Settings -> Identity -> Enable identity service
- Then you can set up your registration preference
- External Provider is not on by default, if you signed up through github, you will need to select that here or set up your account with a password
- Services
- Enable
Git Gateway
- Enable
- It will select
npm run buildby default - change this to
npm run generate - Make sure your Publish directory is called
dist - If you are using a branch other than
main, specify that here as well as in yourconfig.ymluse main by default
Now you can access your cms admin panel by logging in.
- After this stage, experiment with creating different collections in your
config.yml