While working on deploy documentation after fixing #16 I came across a peculiar bug: Frozen-Flask and Flask-Static-Compress break if deployed to non-root domain.
If deployed to root domain: everything is fine and works as expected.
If deployed to non-root domain:
Flask-Static-Compress works as expected if used with COMPRESSOR_STATIC_PREFIX (which may require the full URL,)
Frozen-Flask raises an exception about a trailing slash if assigned the domain subdirectory in FREEZER_BASE_URL (eg. domain.com/blog,) or doesn't convert url_for() links if FREEZER_BASE_URL is assigned only the root domain,
Frozen-Flask works as expected if Flask-Static-Compress support is dropped.
I will investigate further. Perhaps instead of Flask-Static-Compress athena could use jac directly should it work together with Frozen-Flask. An easy fix would be to simply drop minification support, however I'm interested in keeping it—at least for now. Open to comments.
While working on deploy documentation after fixing #16 I came across a peculiar bug: Frozen-Flask and Flask-Static-Compress break if deployed to non-root domain.
If deployed to root domain: everything is fine and works as expected.
If deployed to non-root domain:
COMPRESSOR_STATIC_PREFIX
(which may require the full URL,)FREEZER_BASE_URL
(eg. domain.com/blog,) or doesn't converturl_for()
links ifFREEZER_BASE_URL
is assigned only the root domain,I will investigate further. Perhaps instead of Flask-Static-Compress athena could use jac directly should it work together with Frozen-Flask. An easy fix would be to simply drop minification support, however I'm interested in keeping it—at least for now. Open to comments.