Skip to content

Commit

Permalink
chore: setup a separate compiled studio, bump to 19rc (#6808)
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan committed May 30, 2024
1 parent 5b66664 commit 25be802
Show file tree
Hide file tree
Showing 5 changed files with 78 additions and 73 deletions.
6 changes: 5 additions & 1 deletion dev/test-next-studio/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,17 @@ const config = {
'sanity/structure': requireResolve('../../packages/sanity/src/_exports/structure.ts'),
'sanity/migrate': requireResolve('../../packages/sanity/src/_exports/migrate.ts'),
'sanity': requireResolve('../../packages/sanity/src/_exports/index.ts'),
'styled-components': requireResolve(
'styled-components/dist/styled-components.browser.esm.js',
),
}
return config
},
// Makes it much easier to see which component got memoized by the react compiler
// when testing on https://test-next-studio.sanity.build
productionBrowserSourceMaps: true,
experimental: {
reactCompiler: true,
reactCompiler: process.env.REACT_COMPILER === 'true' ? true : false,
turbo: {
resolveAlias: {
'@sanity/block-tools': '@sanity/block-tools/src/index.ts',
Expand Down Expand Up @@ -106,6 +109,7 @@ const config = {
'sanity/structure': 'sanity/src/_exports/structure.ts',
'sanity/migrate': 'sanity/src/_exports/migrate.ts',
'sanity': 'sanity/src/_exports/index.ts',
'styled-components': {browser: 'styled-components/dist/styled-components.browser.esm.js'},
},
},
},
Expand Down
8 changes: 4 additions & 4 deletions dev/test-next-studio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
},
"dependencies": {
"@sanity/vision": "workspace:*",
"babel-plugin-react-compiler": "0.0.0-experimental-592953e-20240517",
"next": "14.3.0-canary.87",
"react": "19.0.0-beta-04b058868c-20240508",
"react-dom": "19.0.0-beta-04b058868c-20240508",
"babel-plugin-react-compiler": "0.0.0-experimental-487cb0e-20240529",
"next": "15.0.0-rc.0",
"react": "19.0.0-rc-38e3b23483-20240529",
"react-dom": "19.0.0-rc-38e3b23483-20240529",
"sanity": "workspace:*",
"sanity-test-studio": "workspace:*",
"styled-components": "^6.1.11",
Expand Down
2 changes: 1 addition & 1 deletion dev/test-next-studio/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"extends": ["//"],
"pipeline": {
"build": {
"env": ["NEXT_PUBLIC_SANITY_*", "NEXT_PUBLIC_VERCEL_ENV", "SANITY_*"],
"env": ["NEXT_PUBLIC_SANITY_*", "NEXT_PUBLIC_VERCEL_ENV", "SANITY_*", "REACT_COMPILER"],
"outputs": [".next/**", "!.next/cache/**", "out/**"],
"dependsOn": ["^build"]
},
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"dev:strict-studio": "pnpm --filter sanity-strict-studio dev",
"dev:test-studio": "pnpm --filter sanity-test-studio dev",
"dev:next-studio": "pnpm --filter sanity-test-next-studio dev",
"dev:compiled-studio": "REACT_COMPILER=true pnpm dev:next-studio",
"dev:turbo-studio": "pnpm dev:next-studio --turbo",
"docs:report": "node -r dotenv-flow/config -r esbuild-register scripts/doc-report/docReport",
"docs:report:cleanup": "node -r dotenv-flow/config -r esbuild-register scripts/doc-report/docReportCleanup",
Expand Down
134 changes: 67 additions & 67 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 25be802

Please sign in to comment.