Skip to content

Commit

Permalink
Revert "Change DevTool port to 3025 (#566)"
Browse files Browse the repository at this point in the history
This reverts commit 49920ea.
  • Loading branch information
wcalderipe authored Nov 7, 2024
1 parent 49920ea commit 8f5df23
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion apps/devtool/.env.development
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ NEXT_PUBLIC_AUTH_SERVER_URL=http://localhost:3005
NEXT_PUBLIC_ENGINE_SERVER_URL=http://localhost:3010
NEXT_PUBLIC_VAULT_SERVER_URL=http://localhost:3011

NEXT_PUBLIC_LOCAL_DATA_STORE_URL=http://localhost:3025/api/data-store
NEXT_PUBLIC_LOCAL_DATA_STORE_URL=http://localhost:4200/api/data-store
NEXT_PUBLIC_MANAGED_DATASTORE_BASE_URL=http://localhost:3005/data
3 changes: 1 addition & 2 deletions apps/devtool/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
"defaultConfiguration": "production",
"options": {
"buildTarget": "devtool:build",
"dev": true,
"port": 3025
"dev": true
},
"configurations": {
"development": {
Expand Down
2 changes: 1 addition & 1 deletion apps/devtool/src/app/_lib/constants.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const LOCAL_DATA_STORE_URL =
process.env.NEXT_PUBLIC_LOCAL_DATA_STORE_URL || 'http://localhost:3025/api/data-store'
process.env.NEXT_PUBLIC_LOCAL_DATA_STORE_URL || 'http://localhost:4200/api/data-store'
export const AUTH_SERVER_URL = process.env.NEXT_PUBLIC_AUTH_SERVER_URL || 'https://auth.armory.narval.xyz'
export const ENGINE_URL = process.env.NEXT_PUBLIC_ENGINE_SERVER_URL || 'http://localhost:3010'
export const VAULT_URL = process.env.NEXT_PUBLIC_VAULT_SERVER_URL || 'https://vault.armory.narval.xyz'
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ services:
container_name: devtool
command: ['/bin/bash', '-c', 'make devtool/start/dev']
ports:
- '3025:3025'
- '4200:4200'
networks:
- armory_stack
volumes:
Expand Down
2 changes: 1 addition & 1 deletion packages/armory-sdk/src/lib/http/policy-engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const sendEvaluationRequest = async (
const body = await signRequestPayload({ clientId, jwk, alg, signer }, request)

const { data } = await axios.post<SendEvaluationResponse>(
`${engineHost}/v1/evaluations`,
`${engineHost}/evaluations`,
SerializedEvaluationRequest.parse(body),
{ headers: { [HEADER_CLIENT_ID]: clientId } }
)
Expand Down
5 changes: 1 addition & 4 deletions packages/nestjs-shared/src/lib/util/with-api-version.util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ import { VersionValue } from '@nestjs/common/interfaces'

/**
* Adds NestJS URI versionning to the application.
*
* IMPORTANT: In order to work with Swagger, this function needs to be called
* before withSwagger at app boostrap.
*
* @see https://github.com/nestjs/swagger/issues/1495
* https://github.com/nestjs/swagger/issues/1495
*
* @param app - The INestApplication instance.
* @returns The modified INestApplication instance.
Expand All @@ -17,7 +15,6 @@ export const withApiVersion =
(params: { defaultVersion: VersionValue }) =>
(app: INestApplication): INestApplication => {
app.enableVersioning({
...params,
type: VersioningType.URI
})

Expand Down

0 comments on commit 8f5df23

Please sign in to comment.