-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
remix.config.js
40 lines (34 loc) · 1.18 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
// to determine if we're on the local development server
const isDevelopment = process.env.NODE_ENV === "development";
// to enable or disable HMR/HDR
const isUsingHMR = Boolean(process.env.USE_HMR) || false;
// to show environent condition
if (isDevelopment) {
console.info({
message: `🕌 Aplikasi Kawal Masjid sedang berjalan`,
NODE_ENV: process.env.NODE_ENV,
});
}
/** @type {import('@remix-run/dev').AppConfig} */
module.exports = {
ignoredRouteFiles: ["**/.*"],
appDirectory: "app",
assetsBuildDirectory: "public/build",
publicPath: "/build/",
// change this if you are not using Vercel
server: isDevelopment ? undefined : "./server-vercel.js",
serverBuildPath:
isUsingHMR && isDevelopment ? "build/index.js" : "api/index.js",
// https://remix.run/docs/en/1.14.3/file-conventions/remix-config#serverdependenciestobundle
serverDependenciesToBundle: [],
// https://remix.run/docs/en/v1/file-conventions/route-files-v2#route-file-naming-v2
future: {
v2_errorBoundary: true,
v2_meta: true,
v2_routeConvention: true,
v2_normalizeFormMethod: true,
unstable_tailwind: true,
unstable_postcss: true,
unstable_dev: isUsingHMR,
},
};