diff --git a/.github/workflows/deploy-test.yml b/.github/workflows/deploy-test.yml deleted file mode 100644 index a863f5c4bdc..00000000000 --- a/.github/workflows/deploy-test.yml +++ /dev/null @@ -1,58 +0,0 @@ -name: Deploy Test to Netlify -on: - push: - branches: - - feature/evan/legacy-redirects -jobs: - build-deploy: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - with: - ref: feature/evan/legacy-redirects - fetch-depth: 0 # fetch whole repo so git-restore-mtime can work - - name: Update submodules - run: git submodule update --init --remote - - name: Adjust file watchers limit - run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p - - - uses: actions/setup-node@v1 - with: - node-version: '14.x' - - name: Install yarn - run: sudo npm -g install yarn - - name: Yarn install - run: yarn install --immutable - env: - NODE_ENV: ${{ secrets.NODE_ENV }} - - - name: Checking Gatsby cache - id: gatsby-cache-build - uses: actions/cache@v2 - with: - path: | - public - .cache - key: ${{ runner.os }}-gatsby-build-feature/evan/legacy-redirects-${{ github.run_id }} - restore-keys: | - ${{ runner.os }}-gatsby-build-feature/evan/legacy-redirects- - - - name: Fix mtimes - run: yarn fix-mtimes --force - - name: Gatsby build - run: yarn build - env: - APP_ENV: staging - NODE_ENV: ${{ secrets.NODE_ENV }} - NODE_OPTIONS: --max-old-space-size=4096 - ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }} - ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }} - ALGOLIA_INDEX_NAME: edb-staging - - - name: Netlify deploy - run: | - sudo yarn global add netlify-cli - netlify deploy --dir=public --prod - env: - NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} - NETLIFY_SITE_ID: 2e531688-6920-4844-a1ac-2784d3feec11 # ${{ secrets.NETLIFY_TEST_SITE_ID }} diff --git a/gatsby-config.js b/gatsby-config.js index 32987aabad5..224704bf373 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -284,7 +284,7 @@ const splitNodeContent = (nodes) => { }; const netlifyHeaders = () => { - if (isProduction) return {}; + // if (isProduction) return {}; return { '/*': ['X-Robots-Tag: noindex'],