Skip to content

Commit

Permalink
fix: switch from rootDir to build filters
Browse files Browse the repository at this point in the history
  • Loading branch information
cmgriffing committed Sep 6, 2023
1 parent 0af1d3b commit 38094e5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build": "astro build && pagefind && mkdir -p ./src/_pagefind && cp -R ./dist/_pagefind/* ./src/_pagefind/",
"build": "pnpm astro build && pagefind && mkdir -p ./src/_pagefind && cp -R ./dist/_pagefind/* ./src/_pagefind/",
"preview": "astro preview",
"astro": "astro"
},
Expand Down
16 changes: 9 additions & 7 deletions render.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,18 @@ services:
name: app
branch: main
runtime: static
rootDir: apps/app
staticPublishPath: ./dist/
buildCommand: pnpm i -g pnpm; pnpm install; pnpm build
# buildFilter:
# paths:
# - apps/app/**
buildCommand: pnpm i -g pnpm; pnpm install; cd apps/app; pnpm build
buildFilter:
paths:
- apps/app/**
- type: web
name: docs
branch: main
runtime: static
rootDir: apps/docs
# rootDir: apps/docs
staticPublishPath: ./dist/
buildCommand: pnpm i -g pnpm; pnpm install; pnpm build
buildCommand: pnpm i -g pnpm; pnpm install;cd apps/docs; pnpm build
buildFilter:
paths:
- apps/docs/**

0 comments on commit 38094e5

Please sign in to comment.