Skip to content

Commit

Permalink
test node env
Browse files Browse the repository at this point in the history
  • Loading branch information
Brijesh committed Jan 24, 2025
1 parent f38e162 commit ad33597
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/router/routes_v1/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ router.get(

const publicUrl = publicEndPoint ? url.replace(endPoint, publicEndPoint) : url;

console.log(process.env.NODE_ENV);
res.json({
url: process.env.NODE_ENV === 'production' ? cleanProductionURL(publicUrl) : publicUrl,
});
Expand Down
1 change: 1 addition & 0 deletions src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const env = config.get('environment');
const port = config.get('port');
const isDev = env !== 'production';

console.log(process.env.NODE_ENV);
createApp()
.then((app) => {
app.listen(port, '0.0.0.0', (err) => {
Expand Down

0 comments on commit ad33597

Please sign in to comment.