First, install the dependencies using yarn
yarnThen, run the development server:
yarn devThe site is then presented on: http://localhost:3000
To modify the dynamically loaded data through sanity go to: http://localhost:3000/studio
If you update or create any sanity schemas make sure to update the types:
yarn sanity:typegenNote
You never need to define types for anything coming from sanity.
All types from sanity should be inferred on its own if you remember to:
- declare
groqqueries as their own variables - use
defineQueryinstead ofgroq - use
InferGetStaticPropsto create page props.
The sanity studio can be found at https://ny.abakus.no/studio
We would love your contributions. To find out how to, read our CONTRIBUTING.md