forked from Khanhtran47/Sora
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathremix.config.js
30 lines (29 loc) · 856 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
30
const { flatRoutes } = require('remix-flat-routes')
/**
* @type {import('@remix-run/dev/config').AppConfig}
*/
module.exports = {
ignoredRouteFiles: ['**/.*'],
tailwind: true,
postcss: true,
// appDirectory: "app",
// assetsBuildDirectory: "public/build",
// serverBuildPath: "build/index.js",
// publicPath: "/build/",
serverModuleFormat: 'cjs',
future: {
v2_dev: true,
v2_errorBoundary: true,
v2_headers: true,
v2_meta: true,
v2_normalizeFormMethod: true,
v2_routeConvention: true,
},
// ignore all files in routes folder to prevent
// default remix convention from picking up routes
ignoredRouteFiles: ['**/*'],
routes: async defineRoutes => {
return flatRoutes('routes', defineRoutes)
},
serverDependenciesToBundle: [/^swiper.*/, /^ssr-window.*/, /^dom7.*/, /^react-photoswipe-gallery.*/, /^photoswipe.*/],
};