Reputation: 5335
Is there a way to create a route that is recognised only when using a local development server? I'm wanting to create a static_dir route in app.yaml but I only need it for testing.
Upvotes: 0
Views: 57
Reputation: 41089
Instead of adding/removing a static route in app.yaml, create a script/servlet that processes these requests - or ignores them if they come from the production domain.
Upvotes: 1
Reputation: 426
I don't think there is a way to do that. The closest solution I can imagine is to use login: admin
but I am not it works with static_dir
. The documentation is here.
If it does not work, you might need to check the environment in your request handler. Please take a look at the answer here
Upvotes: 0