forked from vendure-ecommerce/storefront-remix-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
remix.config.js
34 lines (33 loc) · 804 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
29
30
31
32
33
34
/**
* @type {import('@remix-run/dev/config').AppConfig}
*/
const cloudflarePagesConfig = {
serverBuildTarget: 'cloudflare-pages',
server: './server-cloudflare-pages.js',
ignoredRouteFiles: ['**/.*'],
};
/**
* @type {import('@remix-run/dev/config').AppConfig}
*/
const netlifyConfig = {
serverBuildTarget: 'netlify',
server: './server-netlify.js',
ignoredRouteFiles: ['**/.*'],
};
/**
* @type {import('@remix-run/dev/config').AppConfig}
*/
const devConfig = {
appDirectory: 'app',
assetsBuildDirectory: 'public/build',
publicPath: '/build/',
serverBuildDirectory: 'build',
devServerPort: 8002,
ignoredRouteFiles: ['.*'],
};
module.exports =
process.env.NODE_ENV === 'development'
? devConfig
: process.env.CF_PAGES
? cloudflarePagesConfig
: netlifyConfig;