Skip to content

Commit

Permalink
Use typegen-only builds for deploy previews (#12149)
Browse files Browse the repository at this point in the history
  • Loading branch information
BlenderDude authored Nov 19, 2024
1 parent 1e0d47d commit 77b8931
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,19 +1,3 @@
[build]
publish = "docs/public"
command = "npm run typedoc; npm run docmodel > docs/public/log.txt || true"

[context.deploy-preview.build]
base = "docs"
ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF . ../src"
command = """\
npm i
npm run docmodel
cd ../
rm -rf monodocs
git clone https://github.com/apollographql/docs --branch main --single-branch monodocs
cd monodocs
npm i
cp -r ../docs local
DOCS_LOCAL=true npm run build \
"""
publish = "monodocs/public"

0 comments on commit 77b8931

Please sign in to comment.