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