Nuxt Studio is a CMS for Nuxt content projects created by NuxtLabs. It allows you to edit markdown files and provides an instant preview. It also integrates with GitHub, letting you easily add and edit content directly in your code repo.
The main advantage of Nuxt Studio is that it intuitively allows non-technical users to update content and gives them immediate feedback.
In this blog post, I will walk you through the process of incorporating Nuxt Studio into your Nuxt Content project.
Click on Add Project > Import Nuxt Project
To import the Nuxt repository, select the repository you want to use.
After we connect to the repository, we need to specify the project's name, base directory, where the content folder is located relative to the root repository location.
In order for us to use Nuxt Studio, we need to have our site deployed. If you are using Github pages, all that is taken care of for you. However, if you have your site self hosted, you need to do the following :
npm i -D @nuxthq/studio
nuxt.config.js
to add Nuxt Studio as:export default defineNuxtConfig({
modules: [
'@nuxthq/studio'
]
})
NUXT_PUBLIC_STUDIO_TOKENS
in your environment file. Set the verification token as the value for the variable.
Finally, we are all set to edit our markdown in Nuxt studio.
Click on Edit on Studio button.
Once you are on Nuxt studio, you should see your editor on the left and instant live preview on the right.
Sign up for a 5-day free trial of Cleavr Pro. No credit card required until you decide to subscribe.
Sign up for free