mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
Merge branch 'master' of https://github.com/okbel/e-comm-example
This commit is contained in:
9
lib/commerce-api.ts
Normal file
9
lib/commerce-api.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import BigcommerceAPI from "./bigcommerce/api";
|
||||
|
||||
const API_URL = process.env.NEXT_EXAMPLE_BIGCOMMERCE_STOREFRONT_API_URL!;
|
||||
const API_TOKEN = process.env.NEXT_EXAMPLE_BIGCOMMERCE_STOREFRONT_API_TOKEN!;
|
||||
|
||||
export const commerce = new BigcommerceAPI({
|
||||
commerceUrl: API_URL,
|
||||
apiToken: API_TOKEN,
|
||||
});
|
Reference in New Issue
Block a user