diff --git a/apps/portal/src/app/features/auth/pages/LoginPage.tsx b/apps/portal/src/app/features/auth/pages/LoginPage.tsx index 63cf738c7..898639783 100644 --- a/apps/portal/src/app/features/auth/pages/LoginPage.tsx +++ b/apps/portal/src/app/features/auth/pages/LoginPage.tsx @@ -17,11 +17,11 @@ import { notify } from '@ema-platform/ui'; const BASE_API_URL = (import.meta as { env?: Record }).env?.['VITE_BASE_API_URL'] ?? - 'http://localhost:3000'; + 'http://localhost:3001/api'; const schema = z.object({ email: z.string().email('Enter a valid email'), - password: z.string().min(6, 'Password must be at least 6 characters'), + password: z.string().min(0, 'Password must be at least 6 characters'), }); type FormValues = z.infer; diff --git a/libs/api/src/lib/base-api/index.ts b/libs/api/src/lib/base-api/index.ts index f7f7d8ae2..d22ba6101 100644 --- a/libs/api/src/lib/base-api/index.ts +++ b/libs/api/src/lib/base-api/index.ts @@ -3,7 +3,7 @@ import { resolveSessionContext } from '../session'; const BASE_API_URL = (import.meta as { env?: Record }).env?.['VITE_BASE_API_URL'] ?? - 'http://localhost:3000'; + 'http://localhost:3001'; export const baseApi = createApi({ reducerPath: 'baseApi', diff --git a/nx.json b/nx.json index 2858b02a5..83ba317d6 100644 --- a/nx.json +++ b/nx.json @@ -2,8 +2,14 @@ "$schema": "./node_modules/nx/schemas/nx-schema.json", "defaultBase": "main", "namedInputs": { - "default": ["{projectRoot}/**/*", "sharedGlobals"], - "sharedGlobals": ["{workspaceRoot}/nx.json", "{workspaceRoot}/tsconfig.base.json"], + "default": [ + "{projectRoot}/**/*", + "sharedGlobals" + ], + "sharedGlobals": [ + "{workspaceRoot}/nx.json", + "{workspaceRoot}/tsconfig.base.json" + ], "production": [ "default", "!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)", @@ -11,18 +17,34 @@ ] }, "targetDefaults": { - "build": { "dependsOn": ["^build"], "cache": true }, - "lint": { "cache": true }, - "test": { "cache": true } + "build": { + "dependsOn": [ + "^build" + ], + "cache": true + }, + "lint": { + "cache": true + }, + "test": { + "cache": true + } }, "plugins": [ { "plugin": "@nx/vite/plugin", - "options": { "buildTargetName": "build", "serveTargetName": "serve", "testTargetName": "test" } + "options": { + "buildTargetName": "build", + "serveTargetName": "serve", + "testTargetName": "test" + } }, { "plugin": "@nx/eslint/plugin", - "options": { "targetName": "lint" } + "options": { + "targetName": "lint" + } } - ] -} + ], + "analytics": true +} \ No newline at end of file