Skip to content

Commit 80b49f1

Browse files
committed
no hallucinations
1 parent 3182937 commit 80b49f1

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/test-deploy.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,14 @@ jobs:
5959
run: |
6060
cd build/docs/gatsby
6161
npm install
62-
cp ../../../docs/config/gatsby-config.js gatsby-config-preview.js
63-
sed -i 's|pathPrefix: "/execution-apis"|pathPrefix: "/execution-apis/preview/PR${{ github.event.number }}"|g' gatsby-config-preview.js
64-
npx gatsby build --prefix-paths --config gatsby-config-preview.js
62+
# Backup original config
63+
cp gatsby-config.js gatsby-config-original.js
64+
# Modify config for preview
65+
sed -i 's|pathPrefix: "/execution-apis"|pathPrefix: "/execution-apis/preview/PR${{ github.event.number }}"|g' gatsby-config.js
66+
# Build with modified config
67+
npx gatsby build --prefix-paths
68+
# Restore original config
69+
cp gatsby-config-original.js gatsby-config.js
6570
- name: Cache docs build output
6671
uses: actions/cache@v4
6772
with:

0 commit comments

Comments
 (0)