Skip to content

Commit 0b0380f

Browse files
fix
Signed-off-by: Rajesh-Nagarajan-11 <rajeshnagarajan36@gmail.com>
1 parent 68cf9ff commit 0b0380f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/build-and-preview-site.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ jobs:
2020
uses: actions/checkout@v6
2121

2222
- name: Install and Build 🔧
23+
env:
24+
PATH_PREFIX: /recognition/pr-preview/pr-${{ github.event.pull_request.number }}
2325
run: |
2426
npm install
2527
node -v
26-
npm run build
28+
npm run build -- --prefix-paths
2729
2830
- name: Broken Link Check 🔗
2931
uses: technote-space/broken-link-checker-action@v2

gatsby-config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
* @type {import('gatsby').GatsbyConfig}
33
*/
44
module.exports = {
5+
pathPrefix: process.env.PATH_PREFIX,
56
siteMetadata: {
67
title: `Layer5 Recognition Program`,
78
description: `Showcasing Your Achievements as a User and a Contributor`,

0 commit comments

Comments
 (0)