Skip to content

Commit 8bd0e7d

Browse files
committedMar 6, 2025·
Trying to fix issue with url routing server side in production mode
1 parent dcf0264 commit 8bd0e7d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed
 

‎.example.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ENV=development
1+
NODE_ENV=development
22
PORT=3000
33
DB=mongodb://localhost:27017
44
DB_TABLE=webcore

‎backend/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ const onEnter = async ({ email, user }) => {
3333
console.error('Failed to create Stripe customer:', error);
3434
}
3535
};
36-
36+
console.log(process.env.NODE_ENV);
3737
coreServer(
3838
'./backend/jobs',
39-
process.env.ENV === 'production' ? './dist' : './frontend',
39+
process.env.NODE_ENV === 'production' ? './dist' : './frontend',
4040
connection,
4141
{ stripe },
4242
onEnter

0 commit comments

Comments
 (0)
Please sign in to comment.