Skip to content

Commit

Permalink
update basepath import
Browse files Browse the repository at this point in the history
  • Loading branch information
corlard3y committed Sep 4, 2024
1 parent caa244d commit 6f51a4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions basePath.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
export function getPreviewBasePath() {
export const getPreviewBasePath = () => {
if (typeof process !== 'undefined' && process.env) {
// Node.js environment (e.g., during the build process)
return process.env.REACT_APP_PR_PREVIEW_BASE
? `/push-website/pr-preview/${process.env.REACT_APP_PR_PREVIEW_BASE}`
: '';
}
return '';
}
};

0 comments on commit 6f51a4d

Please sign in to comment.