-
packages/astro-blog
contains a blog built with astroThe blog consists of static pages Deployed here: https://app.netlify.com/sites/pnpm-workspaces-astro-blog/overview\
Run it by going into the directory and do
ntl dev
-
packages/nextjs-website
contains a website built with next.jsThe website is a server-side rendered page Deployed here: https://app.netlify.com/sites/pnpm-workspaces-nextjs-website/overview
Run it by going into the directory and do
ntl dev
-
packages/button
contains a react button that is used in the astro blog and the next.js website.
-
Run
pnpm init
-
Create a
pnpm-workspace.yaml
With the following content:
packages: - packages/*
-
Create the Astro blog
- Run
mkdir packages && cd packages
- Run
pnpm create astro@latest
- name the site
astro-blog
- choose the blog template
- name the site
- move in the directory
cd astro-blog
- Add missing peer dependency
pnpm add -D rollup
- Run
-
Create the Next.js website
- Go to the
packages
folder - Run
pnpm create next-app --typescript
- Go to the