Which is the correct way to disable node?

Is there a way to statically disable palette nodes without using node-red-admin disable?

I'm looking for a configuration file or something similar.