Skip to content

Commit

Permalink
fix: add .nvmrc and api server url
Browse files Browse the repository at this point in the history
  • Loading branch information
ycarlosedu committed Nov 27, 2024
1 parent ec09de6 commit bedc6bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.17.0
4 changes: 3 additions & 1 deletion constants.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
export const IS_DEV_MODE = () => process.env.NODE_ENV === 'development';

export const API_URL = IS_DEV_MODE() ? 'http://192.168.100.9:3000' : 'http://192.168.100.1:3000';
export const API_URL = IS_DEV_MODE()
? 'http://192.168.100.9:3000'
: 'https://debug-cafe-server.onrender.com';

export const INVALID = {
EMAIL: 'Email inválido',
Expand Down

0 comments on commit bedc6bf

Please sign in to comment.