-
-
Notifications
You must be signed in to change notification settings - Fork 55
/
remix.config.js
29 lines (28 loc) · 854 Bytes
/
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
import { createRoutesFromFolders } from "@remix-run/v1-route-convention";
/**
* @type {import('@remix-run/dev').AppConfig}
*/
export default {
tailwind: true,
postcss: true,
ignoredRouteFiles: ["**/.*"],
// routes: async (defineRoutes) => {
// return flatRoutes("routes", defineRoutes);
// },
routes(defineRoutes) {
// uses the v1 convention, works in v1.15+ and v2
return createRoutesFromFolders(defineRoutes);
},
serverDependenciesToBundle: ["remix-i18next"],
watchPaths: ["./tailwind.config.ts"],
cacheDirectory: "./node_modules/.cache/remix",
browserNodeBuiltinsPolyfill: {
modules: { crypto: true },
},
mdx: async (filename) => {
const [rehypeHighlight] = await Promise.all([import("rehype-highlight").then((mod) => mod.default)]);
return {
rehypePlugins: [rehypeHighlight],
};
},
};