Skip to content

Commit 77b8931

Browse files
authored
Use typegen-only builds for deploy previews (#12149)
1 parent 1e0d47d commit 77b8931

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

netlify.toml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,3 @@
11
[build]
22
publish = "docs/public"
33
command = "npm run typedoc; npm run docmodel > docs/public/log.txt || true"
4-
5-
[context.deploy-preview.build]
6-
base = "docs"
7-
ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF . ../src"
8-
command = """\
9-
npm i
10-
npm run docmodel
11-
cd ../
12-
rm -rf monodocs
13-
git clone https://github.com/apollographql/docs --branch main --single-branch monodocs
14-
cd monodocs
15-
npm i
16-
cp -r ../docs local
17-
DOCS_LOCAL=true npm run build \
18-
"""
19-
publish = "monodocs/public"

0 commit comments

Comments
 (0)