-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhydrogen.config.js
More file actions
24 lines (23 loc) · 799 Bytes
/
hydrogen.config.js
File metadata and controls
24 lines (23 loc) · 799 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import {defineConfig, CookieSessionStorage} from '@shopify/hydrogen/config';
export default defineConfig({
shopify: {
defaultCountryCode: 'US',
defaultLanguageCode: 'EN',
// eslint-disable-next-line no-undef
storeDomain: Oxygen.env.PUBLIC_STORE_DOMAIN,
// eslint-disable-next-line no-undef
storefrontToken: Oxygen.env.PUBLIC_STOREFRONT_API_TOKEN,
// eslint-disable-next-line no-undef
privateStorefrontToken: Oxygen.env.PRIVATE_STOREFRONT_API_TOKEN,
// eslint-disable-next-line no-undef
storefrontId: Oxygen.env.PUBLIC_STOREFRONT_ID,
storefrontApiVersion: '2022-07',
},
session: CookieSessionStorage('__session', {
path: '/',
httpOnly: true,
secure: import.meta.env.PROD,
sameSite: 'Strict',
maxAge: 60 * 60 * 24 * 30,
}),
});