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
extension auto reload only works if NODE_ENV !== 'development' #13025
Comments
I have create a PR here: #13027 |
This is correct, as we don't want the auto reload to kick in when running Directus from source through |
@rijkvanzanten It would be nice to see whenever extensions are reloaded in the logs when |
I believe the original intention for the reliance on NODE_ENV=development was to make sure that extensions weren't "double reloaded" when using the |
I agree! Less exceptions = less confusion 😄 |
That was exactly the original intention 👍 The root of the problem is that |
Describe the Bug
I was wondering why the extension auto reloading didn't work for me. I dug into the codebase and found this line of code in directus/api/src/:
I don't think this is what the code is supposed to be since the primary use case for the extension auto reloading should be a development environment.
To Reproduce
In the environment where you run your directus instance set the environment variables
Errors Shown
No response
What version of Directus are you using?
9.9.1
What version of Node.js are you using?
16.14.2
What database are you using?
postgres
What browser are you using?
firefox
How are you deploying Directus?
docker
The text was updated successfully, but these errors were encountered: