Skip to content

Commit

Permalink
Merge pull request #615 from gersomvg/fix-process-is-not-defined
Browse files Browse the repository at this point in the history
Fix "process is not defined" when using SvelteKit
  • Loading branch information
Thiago Saife authored Aug 1, 2023
2 parents a4a6d34 + 7e7b6c9 commit 6c881c9
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 6c881c9

Please sign in to comment.