-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdeploy-config.js
More file actions
33 lines (27 loc) · 880 Bytes
/
deploy-config.js
File metadata and controls
33 lines (27 loc) · 880 Bytes
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
// Deployment configuration
// Modify this file based on where you're deploying your app
module.exports = {
// For local development (default)
development: {
publicPath: '/',
routerBasename: '/'
},
// For production deployment to root domain
production: {
publicPath: '/',
routerBasename: '/'
},
// For production deployment to subfolder (e.g., /myapp/)
subfolder: {
publicPath: './', // Use relative paths
routerBasename: './' // Use relative paths for router
},
// For production deployment to specific subfolder (e.g., /cowching/)
// subfolder: {
// publicPath: '/cowching/',
// routerBasename: '/cowching'
// }
};
// Current deployment target - change this when deploying
const DEPLOYMENT_TARGET = process.env.DEPLOYMENT_TARGET || 'development';
module.exports.current = module.exports[DEPLOYMENT_TARGET];