Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
93824b9a
Unverified
Commit
93824b9a
authored
Aug 02, 2024
by
Cody Olsen
Committed by
GitHub
Aug 02, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Sanity example deps and fix readme typo (#68359)
parent
95132244
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
15 deletions
+43
-15
README.md
examples/cms-sanity/README.md
+1
-1
package.json
examples/cms-sanity/package.json
+14
-14
sanity.types.ts
examples/cms-sanity/sanity.types.ts
+28
-0
No files found.
examples/cms-sanity/README.md
View file @
93824b9a
...
...
@@ -70,7 +70,7 @@ If you started with [deploying your own](#deploy-your-own) then you can run this
```
bash
npx vercel
link
npx vercel pull
npx vercel
env
pull
```
### Using the Sanity CLI
...
...
examples/cms-sanity/package.json
View file @
93824b9a
...
...
@@ -13,32 +13,32 @@
"typegen"
:
"sanity schema extract && sanity typegen generate"
},
"dependencies"
:
{
"@sanity/assist"
:
"^3.0.
4
"
,
"@sanity/icons"
:
"^3.
0.0
"
,
"@sanity/assist"
:
"^3.0.
5
"
,
"@sanity/icons"
:
"^3.
3.1
"
,
"@sanity/image-url"
:
"^1.0.2"
,
"@sanity/preview-url-secret"
:
"^1.6.
7
"
,
"@sanity/vision"
:
"^3.
44.0
"
,
"@sanity/preview-url-secret"
:
"^1.6.
18
"
,
"@sanity/vision"
:
"^3.
52.4
"
,
"@tailwindcss/typography"
:
"^0.5.13"
,
"@types/node"
:
"^20.14.1"
,
"@types/node"
:
"^20.14.1
3
"
,
"@types/react"
:
"^18.3.3"
,
"@types/react-dom"
:
"^18.3.0"
,
"@vercel/speed-insights"
:
"^1.0.1
1
"
,
"@vercel/speed-insights"
:
"^1.0.1
2
"
,
"autoprefixer"
:
"^10.4.19"
,
"date-fns"
:
"^3.6.0"
,
"next"
:
"^14.2.
3
"
,
"next-sanity"
:
"^9.
3.10
"
,
"postcss"
:
"^8.4.
38
"
,
"next"
:
"^14.2.
5
"
,
"next-sanity"
:
"^9.
4.3
"
,
"postcss"
:
"^8.4.
40
"
,
"react"
:
"^18.3.1"
,
"react-dom"
:
"^18.3.1"
,
"sanity"
:
"^3.
44.0
"
,
"sanity"
:
"^3.
52.4
"
,
"sanity-plugin-asset-source-unsplash"
:
"^3.0.1"
,
"server-only"
:
"^0.0.1"
,
"styled-components"
:
"^6.1.1
1
"
,
"tailwindcss"
:
"^3.4.
3
"
,
"typescript"
:
"5.
4.5
"
"styled-components"
:
"^6.1.1
2
"
,
"tailwindcss"
:
"^3.4.
7
"
,
"typescript"
:
"5.
5.4
"
},
"devDependencies"
:
{
"eslint"
:
"^8.57.0"
,
"eslint-config-next"
:
"^14.2.
3
"
"eslint-config-next"
:
"^14.2.
5
"
}
}
examples/cms-sanity/sanity.types.ts
View file @
93824b9a
...
...
@@ -392,6 +392,34 @@ export type SanityAssistSchemaTypeField = {
}
&
SanityAssistInstruction
>
;
};
export
type
AllSanitySchemaTypes
=
|
SanityImagePaletteSwatch
|
SanityImagePalette
|
SanityImageDimensions
|
SanityFileAsset
|
Geopoint
|
Post
|
Author
|
Slug
|
Settings
|
SanityImageCrop
|
SanityImageHotspot
|
SanityImageAsset
|
SanityAssetSourceData
|
SanityImageMetadata
|
SanityAssistInstructionTask
|
SanityAssistTaskStatus
|
SanityAssistSchemaTypeAnnotations
|
SanityAssistOutputType
|
SanityAssistOutputField
|
SanityAssistInstructionContext
|
AssistInstructionContext
|
SanityAssistInstructionUserInput
|
SanityAssistInstructionPrompt
|
SanityAssistInstructionFieldRef
|
SanityAssistInstruction
|
SanityAssistSchemaTypeField
;
export
declare
const
internalGroqTypeReferenceTo
:
unique
symbol
;
// Source: ./sanity/lib/queries.ts
// Variable: settingsQuery
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment