Skip to content

Commit

Permalink
fix: 🐛 environment variable inconsistency
Browse files Browse the repository at this point in the history
  • Loading branch information
zhumeisongsong committed Dec 10, 2024
1 parent 0e660cb commit 12870f1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions apps/auth-e2e/src/support/test-setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import axios from 'axios';

module.exports = async function () {
// Configure axios for tests to use.
const host = process.env.HOST ?? 'localhost';
const port = process.env.PORT ?? '15003';
const host = process.env.AUTH_HOST ?? 'localhost';
const port = process.env.AUTH_PORT ?? '15003';
axios.defaults.baseURL = `http://${host}:${port}`;
};
4 changes: 2 additions & 2 deletions apps/gateway-e2e/src/support/test-setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import axios from 'axios';

module.exports = async function () {
// Configure axios for tests to use.
const host = process.env.HOST ?? 'localhost';
const port = process.env.PORT ?? '3333';
const host = process.env.GATEWAY_HOST ?? 'localhost';
const port = process.env.GATEWAY_PORT ?? '3333';
axios.defaults.baseURL = `http://${host}:${port}`;
};
4 changes: 2 additions & 2 deletions apps/tasks-e2e/src/support/test-setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import axios from 'axios';

module.exports = async function () {
// Configure axios for tests to use.
const host = process.env.HOST ?? 'localhost';
const port = process.env.PORT ?? '15002';
const host = process.env.TASKS_HOST ?? 'localhost';
const port = process.env.TASKS_PORT ?? '15002';
axios.defaults.baseURL = `http://${host}:${port}`;
};
4 changes: 2 additions & 2 deletions apps/users-e2e/src/support/test-setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import axios from 'axios';

module.exports = async function () {
// Configure axios for tests to use.
const host = process.env.HOST ?? 'localhost';
const port = process.env.PORT ?? '15001';
const host = process.env.USERS_HOST ?? 'localhost';
const port = process.env.USERS_PORT ?? '15001';
axios.defaults.baseURL = `http://${host}:${port}`;
};

0 comments on commit 12870f1

Please sign in to comment.