mirror of
https://github.com/vercel/commerce.git
synced 2025-05-17 23:16:59 +00:00
Update url
This commit is contained in:
parent
3bcf9d1d53
commit
3f49d0aef9
@ -6,8 +6,7 @@ export const SHOPIFY_CART_URL_COOKIE = 'shopify_cartUrl'
|
|||||||
|
|
||||||
export const SHOPIFY_CUSTOMER_TOKEN_COOKIE = 'shopify_customerToken'
|
export const SHOPIFY_CUSTOMER_TOKEN_COOKIE = 'shopify_customerToken'
|
||||||
|
|
||||||
export const STORE_DOMAIN =
|
export const STORE_DOMAIN = process.env.NEXT_PUBLIC_SHOPIFY_STORE_DOMAIN
|
||||||
process.env.NEXT_PUBLIC_SHOPIFY_STORE_DOMAIN?.replace(/(^\w+:|^)\/\//, '')
|
|
||||||
|
|
||||||
export const SHOPIFY_COOKIE_EXPIRE = 30
|
export const SHOPIFY_COOKIE_EXPIRE = 30
|
||||||
|
|
||||||
|
@ -10,13 +10,10 @@ const Head: VFC = () => {
|
|||||||
content="width=device-width, initial-scale=1"
|
content="width=device-width, initial-scale=1"
|
||||||
/>
|
/>
|
||||||
<link rel="manifest" href="/site.webmanifest" key="site-manifest" />
|
<link rel="manifest" href="/site.webmanifest" key="site-manifest" />
|
||||||
{process.env.NEXT_PUBLIC_SHOPIFY_STORE_DOMAIN && (
|
{process.env.COMMERCE_PROVIDER === '@vercel/commerce-shopify' && (
|
||||||
<link
|
<link
|
||||||
rel="preconnect"
|
rel="preconnect"
|
||||||
href={`https://${process.env.NEXT_PUBLIC_SHOPIFY_STORE_DOMAIN.replace(
|
href={`https://${process.env.NEXT_PUBLIC_SHOPIFY_STORE_DOMAIN}`}
|
||||||
/(^\w+:|^)\/\//,
|
|
||||||
''
|
|
||||||
)}`}
|
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</SEO>
|
</SEO>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user