-
Notifications
You must be signed in to change notification settings - Fork 1
/
remix.config.js
28 lines (28 loc) · 960 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
/**
* @type {import('@remix-run/dev/config').AppConfig}
*/
module.exports = {
appDirectory: 'app',
assetsBuildDirectory: 'public/build',
publicPath: '/build/',
serverBuildDirectory: 'build',
devServerPort: 8002,
ignoredRouteFiles: ['.*'],
serverPlatform: 'node',
routes(defineRoutes) {
return defineRoutes(route => {
if (process.env.ENABLE_TEST_ROUTES === 'true') {
if (process.env.NODE_ENV === 'production' && process.env.FLY_APP_NAME) {
console.warn(
`🚨 🚨 🚨 🚨 ENABLE_TEST_ROUTES is true, NODE_ENV is "production" and FLY_APP_NAME is ${process.env.FLY_APP_NAME} so we're not going to enable test routes because this is probably a mistake. We do NOT want test routes enabled on Fly. 🚨 🚨 🚨 🚨 🚨`,
)
return
}
route(
'__tests/github/authenticate',
'__test_routes__/github/authenticate.tsx',
)
}
})
},
}