ax-vasquez / mcnuggies-blog

NextJS site & Sanity Studio code for mcnuggies.dev
http://www.mcnuggies.dev
1 stars 1 forks source link

Migrate to Next JS #74

Closed armstrongl closed 10 months ago

armstrongl commented 2 years ago

This is an experiment to implement the site as a Next.js site instead of Gatsby.

Vercel has a tutorial on Migrating from Gatsby, which is useful but doesn't cover how to use Next.js with Sanity.io as a CMS. Luckily, Sanity has a tutorial on Making a blog with Next.js, React, and Sanity as well as an example project.

I decided not to migrate the existing web directory because it's going to get a little too messy but instead start from scratch, then move the important parts over.

Here are the equivalents between our Gatsby setup and what our Next.js setup will look like:

netlify[bot] commented 2 years ago

βœ”οΈ Deploy Preview for mcnuggies-dev-studio canceled.

πŸ”¨ Explore the source changes: 1911a1f29c480737f4cdd16b5b1eeef5c660eb35

πŸ” Inspect the deploy log: https://app.netlify.com/sites/mcnuggies-dev-studio/deploys/61f6f83f6e1f8a0008d7f03c

netlify[bot] commented 2 years ago

βœ”οΈ Deploy Preview for mcnuggies-dev canceled.

πŸ”¨ Explore the source changes: 1911a1f29c480737f4cdd16b5b1eeef5c660eb35

πŸ” Inspect the deploy log: https://app.netlify.com/sites/mcnuggies-dev/deploys/61f6f84571678400076f27ab