-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Throw an error if keystone.connect not called before queries made #1081
Comments
This has changed slightly since the new Custom Servers don't have |
It looks like there hasn't been any activity here in over 6 months. Sorry about that! We've flagged this issue for special attention. It wil be manually reviewed by maintainers, not automatically closed. If you have any additional information please leave us a comment. It really helps! Thank you for you contribution. :) |
Within a
server.js
file, it's possible to do this:If you've got auth enabled, you'll then be able to see the Admin login page just fine, but wont be able to login.
Can you spot the error?
We should throw an error (or warning?) if
server.start()
is called beforekeystone.connect()
is called.Or possibly throw the warning if any requests are made to any routes before keystone.connect is called.
The text was updated successfully, but these errors were encountered: