The NOBEARS Nuxt Storyblok template is a template that is used to create a new Storyblok based Nuxt project. It is a good starting point for creating a new Storyblok based Nuxt project that follows our coding standards, release process and more.
git clone https://git.nobears.nl/nobears-front-end/templates/nuxt-storyblok.git
rm -rf .git
git init --initial-branch=main
git remote add origin <your-git-repository>
.env fileCreate a new .env file with preset keys, using the following command:
cp .env.example .env
You can find your access token in the Storyblok dashboard: Settings > Configuration > Access Tokens
Add the access token to the .env file:
NUXT_STORYBLOK_DELIVERY_API_TOKEN=<your-storyblok-delivery-api-token>
We recommend you to do the following:
git add .
git commit -m "chore(template): added NOBEARS Nuxt Storyblok template"
git push --set-upstream origin main
Install mkcert for creating a valid certificate (Mac OS).
brew install mkcert
mkcert -install
mkcert localhost
Install and run the proxy.
npm install -g local-ssl-proxy
# Run https on port 3010 and forward requests to http 3000
local-ssl-proxy --source 3010 --target 3000 --cert localhost.pem --key localhost-key.pem
In Storyblok, update the url of which the visual editor should use to show the preview of your content.
Go to Settings > Configuration > Visual editor and update the Location (default environment) field to the following:
https://localhost:3010/