Skip to content

Commit 77b8931

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

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

netlify.toml

-16
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)