Forums

Root serve static file

I want to serve a file in my static folder when a user requests the root url.

I could do this by just configuring flask to serve the file but i want to use the web server to serve it. (Because i hope it's faster.)

Hmmm. You can set up a static files mapping for the root URL ("/"), on the Web tab... but I worry it might then swallow all requests for any other URL, including the ones you want to serve from flask.

Try it out and see what happens?