Integreate cloudflare workers and pages in turbo repo

Hello everyone, So, I have a turbo repo which consists of currently 1 next-js app: user-app and 1 node+express: webhook and I am thinking of adding 2 other apps one for fe: pages and one for be: worker I have a common DB for the whole project in packages/DB/prisma, so I will be directly communicating with it my ques: Is it possible to integrate this or just 1 next-js app with Cloudflare in turbo-repo? I would greatly appreciate any suggestions, blog posts, or videos.
/root-repo

├── turbo.json

├── package/
│ └── db/
│ └── prisma/
│ ├── schema.prisma
│ ├── migrations/
│ └── seed.ts

├── apps/
│ ├── user-app/
│ │ ├── package.json
│ │ ├── next.config.js
│ │ ├── public/
│ │ ├── src/
│ │ └── (other Next.js specific files)
│ │
│ ├── webhook/
│ │ ├── package.json
│ │ ├── index.js (or index.ts)
│ │ └── (other Node.js specific files)
│ │
│ ├── cloudflare-pages/ [to add]
│ │ ├── package.json
│ │ ├── (other Cloudflare Pages specific files)
│ │
│ └── cloudflare-workers/ [to add]
│ ├── package.json
│ ├── index.js (or index.ts)
│ └── (other Cloudflare Workers specific files)

└── (other project files, e.g., README.md, .gitignore)
/root-repo

├── turbo.json

├── package/
│ └── db/
│ └── prisma/
│ ├── schema.prisma
│ ├── migrations/
│ └── seed.ts

├── apps/
│ ├── user-app/
│ │ ├── package.json
│ │ ├── next.config.js
│ │ ├── public/
│ │ ├── src/
│ │ └── (other Next.js specific files)
│ │
│ ├── webhook/
│ │ ├── package.json
│ │ ├── index.js (or index.ts)
│ │ └── (other Node.js specific files)
│ │
│ ├── cloudflare-pages/ [to add]
│ │ ├── package.json
│ │ ├── (other Cloudflare Pages specific files)
│ │
│ └── cloudflare-workers/ [to add]
│ ├── package.json
│ ├── index.js (or index.ts)
│ └── (other Cloudflare Workers specific files)

└── (other project files, e.g., README.md, .gitignore)
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server