diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 35938ba8cb..7405d018f6 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -47,7 +47,7 @@ jobs: run: npm install netlify-cli -g - name: Build using Netlify - run: netlify build --context deploy-preview + run: netlify build --context deploy-preview --offline env: NETLIFY_SITE_ID: ${{ vars.NETLIFY_SITE_ID }} NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index c75a906d7a..c5d5c65b66 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -46,7 +46,7 @@ jobs: run: npm install netlify-cli -g - name: Build using Netlify - run: netlify build --context deploy-preview + run: netlify build --context deploy-preview --offline working-directory: site/gatsby-site env: INSTRUMENT: true diff --git a/site/gatsby-site/github-netlify.toml b/site/gatsby-site/github-netlify.toml index 42b8f18e93..d5eb03f655 100644 --- a/site/gatsby-site/github-netlify.toml +++ b/site/gatsby-site/github-netlify.toml @@ -8,4 +8,7 @@ # package = "/plugins/netlify-plugin-process-notifications" [build.processing.html] - pretty_urls = false \ No newline at end of file + pretty_urls = false + +[context.deploy-preview] + publish = "public/" \ No newline at end of file diff --git a/site/gatsby-site/tests-netlify.toml b/site/gatsby-site/tests-netlify.toml index 43c8ae888d..34dd199623 100644 --- a/site/gatsby-site/tests-netlify.toml +++ b/site/gatsby-site/tests-netlify.toml @@ -2,4 +2,7 @@ package = "@netlify/plugin-gatsby" [build.processing.html] - pretty_urls = false \ No newline at end of file + pretty_urls = false + +[context.deploy-preview] + publish = "public/" \ No newline at end of file