Region id is now a environment variable
fix hardcoding of localhost in cart
This commit is contained in:
@ -73,7 +73,7 @@ export const CartProvider = ({ children }: CartProviderProps) => {
|
||||
return;
|
||||
}
|
||||
|
||||
fetch(`http://localhost:9000/store/carts/${cart.id}/line-items`, {
|
||||
fetch(`${process.env.NEXT_PUBLIC_BASE_URL}/store/carts/${cart.id}/line-items`, {
|
||||
credentials: 'include',
|
||||
method: 'POST',
|
||||
headers: {
|
||||
|
||||
Reference in New Issue
Block a user