Skip to content

Commit 8d0dfc2

Browse files
committed
Merge dev: monorepo with Next.js in apps/web and Sanity in apps/sanity
2 parents fa85914 + 7d9368c commit 8d0dfc2

417 files changed

Lines changed: 23306 additions & 36929 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.DS_Store

-6 KB
Binary file not shown.

.gemini/settings.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

.github/workflows/deploy.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Deploy Sanity Studio
2+
3+
on:
4+
push:
5+
branches: [dev, main]
6+
7+
jobs:
8+
deploy-dev:
9+
if: github.ref == 'refs/heads/dev'
10+
runs-on: ubuntu-latest
11+
environment: dev
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- uses: pnpm/action-setup@v4
17+
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version: "22"
21+
cache: "pnpm"
22+
23+
- name: Install dependencies
24+
run: pnpm install --frozen-lockfile
25+
26+
- name: Deploy Sanity Studio
27+
run: npx sanity deploy -y
28+
working-directory: apps/sanity
29+
env:
30+
SANITY_AUTH_TOKEN: ${{ secrets.SANITY_AUTH_TOKEN }}
31+
SANITY_STUDIO_HOSTNAME: ${{ vars.SANITY_STUDIO_HOSTNAME }}
32+
33+
deploy-production:
34+
if: github.ref == 'refs/heads/main'
35+
runs-on: ubuntu-latest
36+
environment: production
37+
38+
steps:
39+
- uses: actions/checkout@v4
40+
41+
- uses: pnpm/action-setup@v4
42+
43+
- uses: actions/setup-node@v4
44+
with:
45+
node-version: "22"
46+
cache: "pnpm"
47+
48+
- name: Install dependencies
49+
run: pnpm install --frozen-lockfile
50+
51+
- name: Deploy Sanity Studio
52+
run: npx sanity deploy -y
53+
working-directory: apps/sanity
54+
env:
55+
SANITY_AUTH_TOKEN: ${{ secrets.SANITY_AUTH_TOKEN }}
56+
SANITY_STUDIO_HOSTNAME: ${{ vars.SANITY_STUDIO_HOSTNAME }}

.gitignore

Lines changed: 24 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,24 @@
1-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2-
31
# dependencies
4-
/node_modules
5-
/studio/node_modules
6-
/.pnp
7-
.pnp.js
8-
.yarn/install-state.gz
9-
10-
# testing
11-
/coverage
12-
/test-results/
13-
/playwright-report/
14-
/blob-report/
15-
/playwright/.cache/
16-
17-
# next.js
18-
/.next/
19-
/out/
2+
node_modules/
3+
4+
# build output
5+
dist/
6+
.next/
7+
8+
# astro
9+
.astro/
10+
11+
# cloudflare
12+
.wrangler/
13+
.dev.vars
2014

2115
# sanity
22-
/.sanity/
23-
/dist/
16+
.sanity/
17+
18+
# env files
19+
.env
20+
.env.local
21+
.env*.local
2422

2523
# misc
2624
.DS_Store
@@ -31,33 +29,12 @@ npm-debug.log*
3129
yarn-debug.log*
3230
yarn-error.log*
3331

34-
# local env files
35-
.env*.local
36-
37-
# vercel
38-
.vercel
39-
4032
# typescript
4133
*.tsbuildinfo
42-
next-env.d.ts
4334

44-
# Env files created by scripts for working locally
45-
.env
46-
.env.local
47-
# Sentry Config File
48-
.env.sentry-build-plugin
49-
50-
.genkit/
51-
# Firebase debug files
52-
firebase-debug.log
53-
firebase-debug.*.logpackage-lock.json
54-
55-
# Migration tool generated files
56-
scripts/migration/discovered-references.json
57-
scripts/migration/unique-cloudinary-urls.json
58-
scripts/migration/asset-mapping.json
59-
scripts/migration/migration-report.json
60-
scripts/migration/node_modules/
61-
scripts/migration/.env
62-
63-
*.tar.gz
35+
# editor
36+
.vscode/*
37+
!.vscode/launch.json
38+
!.vscode/mcp.json
39+
# pnpm workspace — root pnpm-lock.yaml is the lockfile
40+
package-lock.json

.vscode/launch.json

Lines changed: 60 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,62 @@
11
{
2-
"version": "0.2.0",
3-
"runtimeArgs": ["--preserve-symlinks"],
4-
"configurations": [
5-
{
6-
"name": "Next.js: debug server-side",
7-
"type": "node-terminal",
8-
"request": "launch",
9-
"command": "npm run dev"
10-
},
11-
{
12-
"name": "Next.js: debug client-side",
13-
"type": "chrome",
14-
"request": "launch",
15-
"url": "http://localhost:3000"
16-
},
17-
{
18-
"name": "Next.js: debug full stack",
19-
"type": "node-terminal",
20-
"request": "launch",
21-
"command": "npm run dev",
22-
"serverReadyAction": {
23-
"pattern": "- Local:.+(https?://.+)",
24-
"uriFormat": "%s",
25-
"action": "debugWithChrome"
26-
}
27-
}
28-
]
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Astro: Dev (debug server + sanity.ts)",
6+
"type": "node",
7+
"request": "launch",
8+
"runtimeExecutable": "node",
9+
"runtimeArgs": ["--inspect"],
10+
"program": "${workspaceFolder}/apps/web/node_modules/astro/bin/astro.mjs",
11+
"args": ["dev"],
12+
"cwd": "${workspaceFolder}/apps/web",
13+
"console": "integratedTerminal",
14+
"skipFiles": ["<node_internals>/**", "**/node_modules/**"]
15+
},
16+
{
17+
"name": "Astro: Attach to running dev server",
18+
"type": "node",
19+
"request": "attach",
20+
"port": 9229,
21+
"skipFiles": ["<node_internals>/**", "**/node_modules/**"],
22+
"sourceMaps": true,
23+
"restart": true
24+
},
25+
{
26+
"name": "Astro: Chrome (client-side)",
27+
"type": "chrome",
28+
"request": "launch",
29+
"url": "http://localhost:4321",
30+
"webRoot": "${workspaceFolder}/apps/web",
31+
"sourceMapPathOverrides": {
32+
"webpack:///./*": "${webRoot}/*",
33+
"webpack:///src/*": "${webRoot}/src/*",
34+
"webpack:///*": "*"
35+
}
36+
},
37+
{
38+
"name": "Astro: Dev + Chrome",
39+
"type": "node",
40+
"request": "launch",
41+
"runtimeExecutable": "node",
42+
"runtimeArgs": ["--inspect"],
43+
"program": "${workspaceFolder}/apps/web/node_modules/astro/bin/astro.mjs",
44+
"args": ["dev"],
45+
"cwd": "${workspaceFolder}/apps/web",
46+
"console": "integratedTerminal",
47+
"skipFiles": ["<node_internals>/**", "**/node_modules/**"],
48+
"serverReadyAction": {
49+
"pattern": "Local:.*(https?://[^\\s]+)",
50+
"uriFormat": "%s",
51+
"action": "debugWithChrome"
52+
}
53+
}
54+
],
55+
"compounds": [
56+
{
57+
"name": "Astro: Full (server + browser)",
58+
"configurations": ["Astro: Dev (debug server + sanity.ts)", "Astro: Chrome (client-side)"],
59+
"stopAll": true
60+
}
61+
]
2962
}

.vscode/mcp.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

GEMINI.md

Lines changed: 0 additions & 34 deletions
This file was deleted.

app/(sanity)/icon.svg

Lines changed: 0 additions & 7 deletions
This file was deleted.

app/(sanity)/layout.tsx

Lines changed: 0 additions & 33 deletions
This file was deleted.

app/(sanity)/studio/[[...tool]]/page.tsx

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)