forked from jetskis/superhi-site-build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
remix.config.js
26 lines (26 loc) · 831 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
/** @type {import('@remix-run/dev').AppConfig} */
module.exports = {
appDirectory: 'app',
ignoredRouteFiles: ['**/.*'],
watchPaths: ['./public'],
server: './server.js',
/**
* The following settings are required to deploy Hydrogen apps to Oxygen:
*/
future: {
v2_meta: true,
v2_routeConvention: true,
v2_headers: true,
v2_normalizeFormMethod: true,
v2_errorBoundary: true,
},
publicPath: (process.env.HYDROGEN_ASSET_BASE_URL ?? '/') + 'build/',
assetsBuildDirectory: 'dist/client/build',
serverBuildPath: 'dist/worker/index.js',
serverMainFields: ['browser', 'module', 'main'],
serverConditions: ['worker', process.env.NODE_ENV],
serverDependenciesToBundle: 'all',
serverModuleFormat: 'esm',
serverPlatform: 'neutral',
serverMinify: process.env.NODE_ENV === 'production',
};