Skip to content

peperoli/schmitteweidli.ch

Repository files navigation

Next.js Storyblok Project

This repository is a Next.js Storyblok project.

Requirements

To use this project you have to have a Storyblok account. If you don't have one yet you can register at Storyblok, it's free.

How to get started?

Read the Next.js tutorial about connecting Storyblok and Next.js

1. Clone the repo

  $ git clone https://github.com/sahli-interactive/next-storyblok.git

2. Install all dependecies

$  yarn # or npm install

3. Adding the Access token

Create a new empty Space, add the preview token to .env.local.

STORYBLOK_TOKEN=<your-new-token>

4. Run your project

Set the preview domain in Storyblok to http://localhost:3000/

# to run in developer mode
$ yarn dev # or npm run dev
# to build your project
$ yarn build # or npm run build

Resources