Skip to content

Commit

Permalink
fix: wundergraph port
Browse files Browse the repository at this point in the history
  • Loading branch information
froid1911 committed Jan 30, 2024
1 parent 268dc73 commit d3bf08c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion wundergraph/.wundergraph/wundergraph.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ configureWunderGraphApplication({
options: {
listen: {
host: new EnvironmentVariable("NODE_HOST", "0.0.0.0"),
port: new EnvironmentVariable("NODE_PORT", "3002"),
port: new EnvironmentVariable("NODE_PORT", process.env.PORT ?? "3000"),
},
logger: {
level: new EnvironmentVariable<LoggerLevel>("NODE_LOG_LEVEL", "debug"),
Expand Down
12 changes: 8 additions & 4 deletions wundergraph/.wundergraph/wundergraph.server.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
import { configureWunderGraphServer, EnvironmentVariable, LoggerLevel } from '@wundergraph/sdk/server';
import {
configureWunderGraphServer,
EnvironmentVariable,
LoggerLevel,
} from "@wundergraph/sdk/server";

export default configureWunderGraphServer(() => ({
options: {
listen: {
host: new EnvironmentVariable('SERVER_HOST', '0.0.0.0'),
port: new EnvironmentVariable('SERVER_PORT', process.env.PORT ?? '3003'),
host: new EnvironmentVariable("SERVER_HOST", "0.0.0.0"),
port: new EnvironmentVariable("SERVER_PORT", "3001"),
},
logger: {
level: new EnvironmentVariable<LoggerLevel>('SERVER_LOG_LEVEL', 'debug'),
level: new EnvironmentVariable<LoggerLevel>("SERVER_LOG_LEVEL", "debug"),
},
},
hooks: {
Expand Down

0 comments on commit d3bf08c

Please sign in to comment.