Skip to content

Commit 7d9368c

Browse files
refactor: consolidate monorepo with Next.js in apps/web and Sanity in apps/sanity
Replace the Astro apps/web on dev with main's Next.js app, strip the embedded Studio route, wire typegen to apps/sanity's schema extract, and trim CI to Sanity Studio deploys only (Vercel handles apps/web). Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 31f5fdb commit 7d9368c

418 files changed

Lines changed: 96375 additions & 29580 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.

.github/workflows/deploy.yml

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Deploy CodingCat.dev
1+
name: Deploy Sanity Studio
22

33
on:
44
push:
@@ -23,23 +23,6 @@ jobs:
2323
- name: Install dependencies
2424
run: pnpm install --frozen-lockfile
2525

26-
- name: Install wrangler
27-
run: pnpm add -Dw wrangler
28-
29-
- name: Build
30-
run: pnpm --filter @codingcatdev/web build
31-
env:
32-
SANITY_PROJECT_ID: ${{ vars.SANITY_STUDIO_PROJECT_ID }}
33-
SANITY_DATASET: ${{ vars.SANITY_STUDIO_DATASET }}
34-
PUBLIC_SANITY_STUDIO_URL: https://${{ vars.SANITY_STUDIO_HOSTNAME }}.sanity.studio
35-
36-
- name: Deploy to Cloudflare
37-
run: pnpm exec wrangler deploy
38-
working-directory: apps/web
39-
env:
40-
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
41-
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
42-
4326
- name: Deploy Sanity Studio
4427
run: npx sanity deploy -y
4528
working-directory: apps/sanity
@@ -65,22 +48,6 @@ jobs:
6548
- name: Install dependencies
6649
run: pnpm install --frozen-lockfile
6750

68-
- name: Install wrangler
69-
run: pnpm add -Dw wrangler
70-
71-
- name: Build
72-
run: pnpm --filter @codingcatdev/web build
73-
env:
74-
SANITY_PROJECT_ID: ${{ vars.SANITY_STUDIO_PROJECT_ID }}
75-
SANITY_DATASET: ${{ vars.SANITY_STUDIO_DATASET }}
76-
77-
- name: Deploy to Cloudflare
78-
run: pnpm exec wrangler deploy --env production
79-
working-directory: apps/web
80-
env:
81-
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
82-
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
83-
8451
- name: Deploy Sanity Studio
8552
run: npx sanity deploy -y
8653
working-directory: apps/sanity

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ node_modules/
33

44
# build output
55
dist/
6+
.next/
67

78
# astro
89
.astro/

0 commit comments

Comments
 (0)