Skip to content

Astro & Payload CMS bundled monorepo served by single express server

Notifications You must be signed in to change notification settings

zjael/astrostack

Repository files navigation

AstroStack (Astro, Payload CMS, and Tailwind CSS)

Bundled together in a monorepo using Turbo and pnpm.

.github
  └─ workflows
        └─ CI with pnpm cache setup
apps
  ├─ web (Astro)
  |   ├─ Astro v4
  |   ├─ Tailwind CSS
  |   └─ Payload CMS Local API
  |─ cms (Payload CMS)
  |   └─ Payload CMS v2
  └─ server (Express)
      ├─ Imports Astro as middleware
      └─ Imports Payload CMS as middleware

Apps and Packages

Build

To build all apps and packages, run the following command:

pnpm build

Develop

To develop all apps and packages, run the following command:

pnpm dev

Deploy

When deploying, you can use the --conditions flag to serve the compiled dist directory.

node --conditions=serve dist/index.js

Useful Links

Learn more about the power of Turborepo:

About

Astro & Payload CMS bundled monorepo served by single express server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published