Skip to content

Commit

Permalink
fix(server): fix version parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
sbruens committed Aug 30, 2024
1 parent a1a819c commit b1abea0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/shadowbox/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ const config = {
},
plugins: [
// Used by server/version.ts.
process.env.SB_VERSION ? new webpack.DefinePlugin({'__VERSION__': JSON.stringify(process.env.SB_VERSION)}): undefined,
process.env.VERSION
? new webpack.DefinePlugin({__VERSION__: JSON.stringify(process.env.VERSION)})
: undefined,
// WORKAROUND: some of our (transitive) dependencies use node-gently, which hijacks `require`.
// Setting global.GENTLY to false makes these dependencies use standard require.
new webpack.DefinePlugin({'global.GENTLY': false}),
Expand Down

0 comments on commit b1abea0

Please sign in to comment.