#✅ EXTENSIONS_AUTO_RELOAD=true not working

8 messages · Page 1 of 1 (latest)

clever galleon
#

Hi everyone. First time posting here.

Having followed the guide available at https://docs.directus.io/contributing/running-locally.html, I've got to the point where Directus seems to be running OK. Both the Directus APP and the API are up and running (at least the /auth/login endpoint is working). At this point I'm checking out what is the dev flow for developing a custom extension. I have scaffolded a custom module and have been able to make that show up in the Directus APP and all, but, despite having set the EXTENSIONS_AUTO_RELOAD env var to true inside the API's .env file, I can't seem to get the Directus APP to pick any changes that I make to the extension's code without having to restart Directus.

Other thing that seems odd is that even though the NODE_ENV env var inside the API's .env file has been set to development, the Directus APP keeps printing the Environment: production inside the console. I guess this is what's blocking/disabling Vue's DevTools.

Started Directus via pnpm --filter directus dev
Started the custom extension via npm run dev

Note: I am working inside a Dev Container.

Any help or pointers on how to clear these two issues would be greatly appreciated.

woeful totemBOT
#

Thanks for posting! This is a community powered server, so you may or may not get an answer based on available help and expertise. To increase your chances of somebody being able to help you, please make sure your question includes the following:

  • An explanation of exactly what you're trying to achieve.
  • Any and all related code or previous attempts.
  • The exact issue or error you are facing.
  • Any screenshots if applicable.

When you're done with this thread, please close it.

(If you have a support agreement and need help, please contact the core team via email.)

#

✅ EXTENSIONS_AUTO_RELOAD=true not working

woeful totemBOT
clever galleon
#

Unclosing it... got confused with the instructions

regal meadow
#

you don't need to run directus in dev mode to work on extensions.

#

you can do
npx directus init and then work on extensions

clever galleon
#

OK, but the idea for running Directus locally and in dev mode is to be able to make use of Vue's dev tools. All I've read so far indicates that this is not possible otherwise.