0c7217ba8f
## Feature - [x] Documentation added ## Documentation / Examples - [x] The examples guidelines are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing.md#adding-examples) This PR updates the cms-sanity example to: - Deploy to Vercel with the [Sanity Vercel Integration](https://www.sanity.io/docs/vercel-integration) by default. - You can still opt-out of using the Sanity Vercel Integration, clicking `You can also set up manually` gives you all the information you need. - The blog itself is updated so it's much more resilient to missing data, and is setup to set `revalidate: 60` until you have a On-demand Revalidation webhook setup. - Preview Mode is now enabled on the frontpage as well. - The Sanity client setup, and webhook validation, are updated to follow our current best practices.
26 lines
643 B
JSON
26 lines
643 B
JSON
{
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "next",
|
|
"build": "next build",
|
|
"start": "next start",
|
|
"studio:dev": "npm --prefix studio run start",
|
|
"studio:deploy": "npx vercel env pull && npm --prefix studio run deploy"
|
|
},
|
|
"dependencies": {
|
|
"@portabletext/react": "^1.0.6",
|
|
"@sanity/image-url": "^1.0.1",
|
|
"@sanity/webhook": "^2.0.0",
|
|
"classnames": "^2.3.1",
|
|
"date-fns": "^2.29.1",
|
|
"next": "latest",
|
|
"next-sanity": "^0.6.0",
|
|
"react": "^17.0.2",
|
|
"react-dom": "^17.0.2"
|
|
},
|
|
"devDependencies": {
|
|
"autoprefixer": "^10.4.8",
|
|
"postcss": "^8.4.14",
|
|
"tailwindcss": "^3.1.7"
|
|
}
|
|
}
|