Is staticDir2 available as a variable?

Have a look at @bep’s answer in this thread:

That should work without config variable if you need it only for local development.