Skip to content

Commit a66a02a

Browse files
bug: fix nodejs failing to start (#117)
* bug: fix nodejs failing to start * api key
1 parent 5cf8af9 commit a66a02a

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

package-testing/node-sdk-relay/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,3 @@ $ yarn run start:prod
3131
# unit tests
3232
$ yarn run test
3333
```
34-
35-

package-testing/node-sdk-relay/build-and-run.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,7 @@ SDK="https://github.com/Eppo-exp/node-server-sdk.git"
88

99
# Run the poller
1010
yarn install
11+
# Build the application
12+
yarn build
1113
echo "Listening on port ${SDK_RELAY_PORT}"
1214
yarn start:prod

package-testing/node-sdk-relay/src/app.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export class AppController {
4343
const currentInstance = getInstance();
4444
currentInstance.stopPolling();
4545
await init({
46-
apiKey: 'test',
46+
apiKey: process.env.EPPO_API_KEY || 'NOKEYSPECIFIED',
4747
assignmentLogger: getLogger(),
4848
pollAfterFailedInitialization: true,
4949
banditLogger: getLogger(),

package-testing/node-sdk-relay/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ async function bootstrap() {
1010
logger = new RelayLogger();
1111

1212
await init({
13-
apiKey: 'test',
13+
apiKey: process.env.EPPO_API_KEY || 'NOKEYSPECIFIED',
1414
assignmentLogger: logger,
1515
pollAfterFailedInitialization: true,
1616
banditLogger: logger,

0 commit comments

Comments
 (0)