forked from Shopify/shopify-app-template-remix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
remix.config.js
34 lines (33 loc) · 1.15 KB
/
remix.config.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
34
// eslint-disable-next-line no-warning-comments
// TODO: Document this properly somewhere. Where? We should discuss this issue with the CLI team.
// Related: https://github.com/remix-run/remix/issues/2835#issuecomment-1144102176
// Replace the HOST env var with SHOPIFY_APP_URL so that it doesn't break the remix server. The CLI will eventually
// stop passing in HOST, so we can remove this workaround after the next major release.
if (
process.env.HOST &&
(!process.env.SHOPIFY_APP_URL ||
process.env.SHOPIFY_APP_URL === process.env.HOST)
) {
process.env.SHOPIFY_APP_URL = process.env.HOST;
delete process.env.HOST;
}
/** @type {import('@remix-run/dev').AppConfig} */
export default {
ignoredRouteFiles: ["**/.*"],
appDirectory: "app",
cacheDirectory: "./.remix/cache",
assetsBuildDirectory: "./.remix/build/client",
serverBuildPath: "./.remix/build/server/entry-server.js",
publicPath: "/build/",
serverModuleFormat: "esm",
future: {
v2_errorBoundary: true,
v2_headers: true,
v2_meta: true,
v2_normalizeFormMethod: true,
v2_routeConvention: true,
v2_dev: {
port: process.env.HMR_SERVER_PORT || 8002,
},
},
};