-
Notifications
You must be signed in to change notification settings - Fork 427
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: adds support for Create-Studio integration (#7635)
Co-authored-by: Robin Pyon <robin.pyon@gmail.com>
- Loading branch information
Showing
68 changed files
with
2,641 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"ignore": ["styled-components", "react", "react-dom", "sanity"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"name": "test-create-integration-studio", | ||
"version": "3.61.0", | ||
"private": true, | ||
"license": "MIT", | ||
"author": "Sanity.io <hello@sanity.io>", | ||
"scripts": { | ||
"build": "../.bin/sanity build", | ||
"clean": "rimraf .sanity dist", | ||
"deploy": "npx sanity deploy", | ||
"dev": "../.bin/sanity dev", | ||
"lint": "eslint .", | ||
"start": "../.bin/sanity start" | ||
}, | ||
"dependencies": { | ||
"@sanity/code-input": "^4.1.4", | ||
"react": "^18.3.1", | ||
"react-dom": "^18.3.1", | ||
"sanity": "workspace:*", | ||
"styled-components": "^6.1.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import {defineCliConfig} from 'sanity/cli' | ||
|
||
export default defineCliConfig({ | ||
api: { | ||
projectId: 'ppsg7ml5', | ||
dataset: 'test', | ||
}, | ||
|
||
studioHost: 'create-integration-test', | ||
autoUpdates: false, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// eslint-disable-next-line import/no-extraneous-dependencies | ||
import {codeInput} from '@sanity/code-input' | ||
import {defineConfig} from 'sanity' | ||
import {structureTool} from 'sanity/structure' | ||
|
||
import {schemaTypes} from './schema' | ||
|
||
export default defineConfig({ | ||
plugins: [structureTool(), codeInput()], | ||
title: 'Strict', | ||
name: 'default', | ||
projectId: 'ppsg7ml5', | ||
dataset: 'test', | ||
schema: {types: schemaTypes}, | ||
|
||
beta: { | ||
create: { | ||
startInCreateEnabled: true, | ||
fallbackStudioOrigin: 'create-integration-test.sanity.studio', | ||
}, | ||
}, | ||
}) |
Oops, something went wrong.