Comments (2)
What I had to do before adding Sanity v3 to this existing next 13 project
Node
- Changed node version
v14.16.1
=> to at leastv16.20.2
Where to create Sanity Studio?
-
I
$ cd ..
out one step from nextjs project -
$ npm create sanity@latest
-
Need to install the following packages: [email protected] Ok to proceed? (y) y
-
Error: Failed to communicate with the Sanity API: Unauthorized - Session not found. You may need to login again with sanity login. For more information, see https://docs.sanity.io/help/cli-errors. at getOrCreateProject (~/.npm/_npx/64b24/node_modules/@sanity/cli/lib/_chunks/cli- 129.js:111:11) at async initSanity (~/.npm/_npx/789/node_modules/@sanity/cli/lib/_chunks/cli- 119.js:18411:415)
-
-
$ sanity login
-
zsh: command not found: sanity
-
-
$ npm install --global sanity@latest
-
$ npm create sanity@latest
-
Error: Failed to communicate with the Sanity API: Unauthorized - Session not found. You may need to login again with sanity login.
-
-
$ sanity login
❗️use same login type as you use when login to Sanity-
Login successful
ewewfer Login type GitHub
-
-
$ npm create sanity@latest
-
Fetching existing projects ? Select project to use Create new project ? Your project name: Sanity For testing-1 ? Use the default dataset configuration? Yes ✅ Creating dataset ? Project output path: /..../react/next/sanity-for-testing-1 ? Select project template Clean project with no predefined schemas ? Do you want to use TypeScript? Yes ✅ Bootstrapping files from template ✅ Resolving latest module versions ✅ Creating default project files ? Package manager to use for installing dependencies? npm
Success 🎉
-
-
$ ls
-
campout connect-next-with-gql git-test hulu-2 testing-1 sanity-for-testing-1
testing-1 is the name of my nextjs project. sanity-for-testing-1 is the Sanity Studio folder.
-
-
$ cd sanity-for-testing-1
-
$ npm run dev
-
Checking configuration files... ✅ Sanity Studio using [email protected] ready in 1567ms and running at http://localhost:3333/
-
DONE 🎉
from test-next-13.
Don't forget to add domain
from test-next-13.
Related Issues (20)
- [FEATURE] seo
- [FEATURE] optimize website speed
- [FEATURE] WCAG 2.2 AA
- [FEATURE] cypress testing
- [FEATURE] change domain name
- [FEATURE] test
- [IDEA] lottery game
- [IDEA] clerk auth
- [BUG] remove outline
- [IDEA] add linkedin navbar
- [IDEA] connect jira
- [IDEA] add kakeibo
- [IDEA] quotes advice
- [BUG] active link style
- [BUG] style min max width
- [FEATURE] add content
- [FEATURE] update image
- [IDEA] death note HOT 5
- [FEATURE] wheel of life chart
- [IDEA] different font sizes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from test-next-13.