Skip to content

Commit bf0f169

Browse files
committed
Update webpack configuration to include Gumroad product ID and refactor license management to use dynamic product ID from environment variables.
1 parent c86c683 commit bf0f169

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/payments/license.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// License verification and management API module
22
// Handles all Gumroad API interactions and license operations
33

4-
const GUMROAD_PRODUCT_ID = 'WAwyZR5nPmxDKE6_y3rjog=='
4+
const GUMROAD_PRODUCT_ID = WP_GUMROAD_PRODUCT_ID
55
const MAX_USAGE_LIMIT = 2
66

77
/**

webpack.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ module.exports = (env, argv) => ({
4444
plugins: [
4545
new webpack.DefinePlugin({
4646
'WP_ENV': JSON.stringify(process.env.NODE_ENV),
47-
'WP_AMPLITUDE_KEY': JSON.stringify(secrets.AMPLITUDE_KEY)
47+
'WP_AMPLITUDE_KEY': JSON.stringify(secrets.AMPLITUDE_KEY),
48+
'WP_GUMROAD_PRODUCT_ID': JSON.stringify(secrets.GUMROAD_PRODUCT_ID),
4849
}),
4950
new HtmlWebpackPlugin({
5051
templateContent: `<root-ui></root-ui>`,

0 commit comments

Comments
 (0)