Mirror: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Vercel for Docs Deployment (#3217)

authored by

Grant Sander and committed by
GitHub
ffe5b32f 1470a9c7

+2 -11
-10
.github/workflows/site.yml
··· 70 70 working-directory: ./packages/site 71 71 if: github.ref != 'refs/heads/main' 72 72 run: pnpm run build --staging 73 - 74 - #- name: Deploy Staging Site 75 - # working-directory: ./packages/site 76 - # if: github.ref != 'refs/heads/main' 77 - # run: pnpm run deploy --staging 78 - # env: 79 - # FORMIDEPLOY_GIT_SHA: ${{ github.event.pull_request.head.sha }} 80 - # GITHUB_DEPLOYMENT_TOKEN: ${{ secrets.GITHUB_TOKEN }} 81 - # SURGE_LOGIN: ${{ secrets.SURGE_LOGIN }} 82 - # SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}
+2 -1
packages/site/static.config.js
··· 3 3 import constants from './src/constants'; 4 4 import Document from './src/html'; 5 5 6 - const basePath = 'open-source/urql'; 6 + const basePath = 7 + process.env.VERCEL_ENV === 'preview' ? '.' : 'open-source/urql'; 7 8 const isStaging = process.env.REACT_STATIC_ENV === 'staging'; 8 9 const isProduction = process.env.REACT_STATIC_ENV === 'production'; 9 10