Skip to content

Move reading of auth-public-key down from top level#27

Open
dyedwiper wants to merge 1 commit intoyjs:masterfrom
dyedwiper:move-reading-auth-public-key
Open

Move reading of auth-public-key down from top level#27
dyedwiper wants to merge 1 commit intoyjs:masterfrom
dyedwiper:move-reading-auth-public-key

Conversation

@dyedwiper
Copy link

We are currently trying to integrate y-redis in our app. Because the code in src/server.js is very specific, we have rewritten that part ourselves and imported registerYWebsocketServer directly from src/ws.js. We then encountered the problem that the app didn't start because AUTH_PUBLIC_KEY was not set though we didn't use it. It was because it is read on top level in src/server.js and this file is executed always because it is exported in index.js. I don't see a reason why it must be read on top-level. Moving it into the function should fix the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant