Git Product home page Git Product logo

sveltekit-sanity-goat's Introduction

Deploy with Vercel

Sveltekit x Sanity Studio v3

Hi there ๐Ÿ‘‹! This is a repo for my talk on YouTube, from the Sanity.io Virtual Meetup - Autumn 2022.

Features

โœจ Embedding Sanity V3 in a Sveltekit app

When I was working on a new project that involved Sveltekit and Sanity I got curious and wanted to know whether I could directly embed the Sanity Studio V3 (Release Candiate) into a SvelteKit app. I was living on the edge already, so I might as well embrace it ๐ŸŒˆ

๐Ÿ‘€ Side-by-side Instant Content preview.

I also go over on how we use Sanity's Side-by-side Instant Content preview feature with Sveltekit. And how you can easily implement this in your own SvelteKit applications. The code (createPreviewSubscriptionStore) is mostly inspired from Sanity's toolkit for Next.js.

Learn more

Developing

Once you've created a project and installed dependencies with pnpm install. Make sure you have added all the environment variables (see env.example).

pnpm dev

# or start the server and open the app in a new browser tab
pnpm dev -- --open

Building & Previewing

To build the project, run:

pnpm build

To preview the build, run:

pnpm preview

https://chrisjayden.com/articles/sveltekit-sanity-v3

https://chrisjayden.com/articles/sveltekit-sanity-content-preview

https://kit.svelte.dev/docs/adapters https://www.youtube.com/watch?v=xELXz553LCY

sveltekit-sanity-goat's People

Contributors

renatewr avatar multiplehats avatar 3200pro avatar zivbk1 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.