Skip to content

Commit

Permalink
bun is also in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
enisdenjo committed Dec 18, 2024
1 parent 792fa87 commit 3ba9b3c
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions e2e/self-hosting-hive/gateway.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ import { defineConfig } from '@graphql-hive/gateway';
import { boolEnv, Opts } from '@internal/testing';

const opts = Opts(process.argv);
const selfHostingHost =
process.env['E2E_GATEWAY_RUNNER'] === 'docker'
? boolEnv('CI')
? '172.17.0.1'
: 'host.docker.internal'
: 'localhost';
const selfHostingHost = String(process.env['E2E_GATEWAY_RUNNER']).includes(
'docker',
)
? boolEnv('CI')
? '172.17.0.1'
: 'host.docker.internal'
: 'localhost';
const selfHostingPort = opts.getServicePort('selfHostingHive');

export const gatewayConfig = defineConfig({
Expand Down

0 comments on commit 3ba9b3c

Please sign in to comment.