Skip to content

Commit b159e0b

Browse files
authored
Make Shopkit script location URL configurable (#53)
1 parent 4a633ca commit b159e0b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import './App.scss';
1313

1414
const App: React.FC = () => {
1515
useScript({
16-
src: 'https://btn.moltin.com',
16+
src: config.shopkitSrc,
1717
'data-moltin-client-id': config.clientId,
1818
'data-moltin-stripe-publishable-key': config.stripeKey
1919
});

src/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ export const config = {
88
algoliaApiKey: '7d829396bbf202b30bfe7ad52120bbac',
99
algoliaIndexName: 'product',
1010
compareKeys: [],
11+
shopkitSrc: 'https://btn.moltin.com',
1112
};

0 commit comments

Comments
 (0)