-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathremix.env.d.js
33 lines (30 loc) · 894 Bytes
/
remix.env.d.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
const {HydrogenCart} = require('@shopify/hydrogen');
const {Storefront} = require('~/lib/type');
const {HydrogenSession} = require('~/lib/session.server');
/**
* A global `process` object is only available during build to access NODE_ENV.
*/
const process = {env: {NODE_ENV: 'production'}};
/**
* Declare expected Env parameter in fetch handler.
*/
const env = {
SESSION_SECRET: '',
PUBLIC_STOREFRONT_API_TOKEN: '',
PRIVATE_STOREFRONT_API_TOKEN: '',
PUBLIC_STORE_DOMAIN: '',
PUBLIC_STOREFRONT_ID: '',
PUBLIC_EMAILJS_SERVICE_ID: '',
PUBLIC_EMAILJS_TEMPLATE_ID: '',
PUBLIC_EMAILJS_PUBLIC_KEY: '',
};
/**
* Declare local additions to `AppLoadContext` to include the session utilities we injected in `server.js`.
*/
const AppLoadContext = {
waitUntil: ExecutionContext.waitUntil,
session: HydrogenSession,
storefront: Storefront,
cart: HydrogenCart,
env: env,
};