-
Notifications
You must be signed in to change notification settings - Fork 0
/
remix.config.js
69 lines (68 loc) · 1.69 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
const { createRoutesFromFolders } = require("@remix-run/v1-route-convention");
if (process.env.DEPLOYMENT_TARGET === "flyio") {
module.exports = {
ignoredRouteFiles: ["**/.*"],
// appDirectory: "app",
// assetsBuildDirectory: "public/build",
// serverBuildPath: "build/index.js",
// publicPath: "/build/",
serverModuleFormat: "cjs",
future: {},
routes(defineRoutes) {
// uses the v1 convention, works in v1.15+ and v2
return createRoutesFromFolders(defineRoutes);
},
serverDependenciesToBundle: [
"@formkit/auto-animate/react",
"recharts",
"d3-shape",
"d3-scale",
"d3-path",
"d3-array",
"d3-color",
"internmap",
"d3-interpolate",
"d3-format",
"d3-time",
"d3-time-format",
"react-is",
"@simplewebauthn/browser",
],
};
} else {
/**
* @type {import('@remix-run/dev').AppConfig}
*/
module.exports = {
publicPath: "/build/",
serverMainFields: ["main", "module"],
serverModuleFormat: "cjs",
serverPlatform: "node",
serverMinify: false,
ignoredRouteFiles: [".*"],
// appDirectory: "app",
// assetsBuildDirectory: "public/build",
sourcemap: true,
future: {},
routes(defineRoutes) {
// uses the v1 convention, works in v1.15+ and v2
return createRoutesFromFolders(defineRoutes);
},
serverDependenciesToBundle: [
"@formkit/auto-animate/react",
"recharts",
"d3-shape",
"d3-scale",
"d3-path",
"d3-array",
"d3-color",
"internmap",
"d3-interpolate",
"d3-format",
"d3-time",
"d3-time-format",
"react-is",
"@simplewebauthn/browser",
],
};
}