generated from mzaien/remix-nextui-vercel
-
Notifications
You must be signed in to change notification settings - Fork 185
/
remix.config.js
51 lines (50 loc) · 1.22 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
const { flatRoutes } = require('remix-flat-routes')
/**
* @type {import('@remix-pwa/dev').WorkerConfig}
*/
module.exports = {
//
// Remix Settings
//
// appDirectory: "app",
// assetsBuildDirectory: "public/build",
browserNodeBuiltinsPolyfill: { modules: { url: true } },
// ignore all files in routes folder to prevent
// default remix convention from picking up routes
ignoredRouteFiles: ['**/.*'],
// publicPath: "/build/",
postcss: true,
routes: async defineRoutes => {
return flatRoutes('routes', defineRoutes)
},
// serverBuildPath: "build/index.js",
serverDependenciesToBundle: [
/^swiper.*/,
/^ssr-window.*/,
/^dom7.*/,
/^react-photoswipe-gallery.*/,
/^photoswipe.*/,
/^remix-utils.*/,
/^is-ip.*/,
/^ip-regex.*/,
/^super-regex.*/,
/^clone-regex.*/,
/^function-timeout.*/,
/^time-span.*/,
/^convert-hrtime.*/,
/^is-regexp.*/,
/@remix-pwa\/.*/,
/@font-source\/.*/
],
serverModuleFormat: 'cjs',
tailwind: true,
//
// Remix PWA Settings
//
// entryWorkerFile: '<appDir>/entry.worker.ts',
// worker: '@remix-pwa/runtime',
workerName: 'sw',
workerMinify: true,
// workerBuildDirectory: './build',
// workerSourcemap: false,
};