23 lines
713 B
JavaScript
Raw Normal View History

2023-02-27 08:24:38 +00:00
/** @type {import('@remix-run/dev').AppConfig} */
2023-02-27 08:38:39 +00:00
require('dotenv')?.config();
2023-02-27 08:24:38 +00:00
module.exports = {
appDirectory: 'src',
ignoredRouteFiles: ['**/.*'],
watchPaths: ['./public'],
server: './server.ts',
/**
* The following settings are required to deploy Hydrogen apps to Oxygen:
*/
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',
};