|
@@ -8,10 +8,10 @@ export const PRODUCTION_MODE = process.env.NODE_ENV === 'production'
|
|
|
export const apiPrefix = '/api'
|
|
|
|
|
|
// The port used by the server
|
|
|
-export const serverPort = 5000
|
|
|
+export const serverPort = parseInt(process.env.PORT, 10) || 5000
|
|
|
|
|
|
-// The directory where the images are stored
|
|
|
+// The directory where the images are stored (do not edit it)
|
|
|
export const imagesPath = path.resolve(__dirname, 'images')
|
|
|
|
|
|
// Should the server serve client files from the `/dist` directory
|
|
|
-export const serveClient = true
|
|
|
+export const serveClient = process.env.SERVE_CLIENT === 'true'
|