diff --git a/apps/backend/src/node.ts b/apps/backend/src/node.ts index 924a0d7..e82f6a6 100644 --- a/apps/backend/src/node.ts +++ b/apps/backend/src/node.ts @@ -14,7 +14,7 @@ app.get( }), ) -const PORT = 3000 +const PORT = 3030 serve({ fetch: app.fetch, diff --git a/apps/frontend/src/hooks/useNetworkingParams.ts b/apps/frontend/src/hooks/useNetworkingParams.ts index 3d69313..67d11e6 100644 --- a/apps/frontend/src/hooks/useNetworkingParams.ts +++ b/apps/frontend/src/hooks/useNetworkingParams.ts @@ -2,7 +2,7 @@ import { useMemo } from 'react' const getBaseUrl = (_env: ImportMetaEnv) => { // You can return different base URLs depending on your environmental vars - return `http://localhost:3000` + return `http://localhost:3030` } export const useNetworkingParams = () => { diff --git a/apps/frontend/src/utils/testing-utils/people-mocks.ts b/apps/frontend/src/utils/testing-utils/people-mocks.ts index ecaee02..3e581c3 100644 --- a/apps/frontend/src/utils/testing-utils/people-mocks.ts +++ b/apps/frontend/src/utils/testing-utils/people-mocks.ts @@ -2,7 +2,7 @@ import type { paths } from '../../services/schemas/people' import { createOpenApiHttp } from 'openapi-msw' // Should be replaced with an env var of some kind -const baseUrl = 'http://localhost:3000' +const baseUrl = 'http://localhost:3030' export const http = createOpenApiHttp({ baseUrl, diff --git a/nx.json b/nx.json index 50a69a0..6415af8 100644 --- a/nx.json +++ b/nx.json @@ -51,6 +51,11 @@ "inputs": ["production", "^production"], "outputs": ["{projectRoot}/build", "{projectRoot}/dist"] }, + "dev": { + "cache": false, + "dependsOn": ["^build"], + "inputs": ["production", "^production"] + }, "test:build": { "cache": true, "dependsOn": ["build"], diff --git a/package.json b/package.json index 481925f..7f8d95f 100644 --- a/package.json +++ b/package.json @@ -19,8 +19,7 @@ "test:knip": "knip", "build": "nx affected --target=build", "build:all": "nx run-many --target=build", - "watch": "pnpm run build:all && nx watch --all -- pnpm run build:all", - "dev": "pnpm run watch", + "dev": "nx run-many -t dev --filter=\"./apps/**\"", "prettier": "prettier --ignore-unknown .", "prettier:write": "pnpm run prettier --write" },