Skip to content

Commit

Permalink
fix possible "process is not defined"
Browse files Browse the repository at this point in the history
  • Loading branch information
gersomvg authored Jul 18, 2023
1 parent 069d51a commit 7e7b6c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ export const STORYBLOK_AGENT = 'SB-Agent'
export const STORYBLOK_JS_CLIENT_AGENT = {
defaultAgentName: 'SB-JS-CLIENT',
defaultAgentVersion: 'SB-Agent-Version',
packageVersion: process.env.npm_package_version || '5.0.0'
packageVersion: (typeof process !== 'undefined' && process.env.npm_package_version) || '5.0.0'
}

0 comments on commit 7e7b6c9

Please sign in to comment.