Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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