New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.18 regression: errors out with empty SERVER_FALLBACK_PAGE #218
Comments
Thanks for that! |
In fact, I've found that I can pass ARG STATIC_WEB_SERVER_VERSION=2.18
FROM joseluisq/static-web-server:${STATIC_WEB_SERVER_VERSION}
# SWS configuration, check https://sws.joseluisq.net/configuration/environment-variables/
ENV SERVER_ROOT=/public
# Set fallback page for Single-page Applications
ARG SERVER_FALLBACK_PAGE=false
ENV SERVER_FALLBACK_PAGE=${SERVER_FALLBACK_PAGE}
# The whole website
COPY public/ /public/ This is thanks to https://docs.rs/clap/latest/clap/struct.Arg.html#method.env:
|
You can theoretically whatever string that
Yeah, this is a rigid effect of our last migration to Clap v4. |
You can use the
|
Fixed on v2.19.0 |
Describe the bug
With the following Dockerfile, I could run the resulting image even with an empty
SERVER_FALLBACK_PAGE
:Now, setting STATIC_WEB_SERVER_VERSION to 2.18, the same build gives:
To Reproduce
Set an empty
SERVER_FALLBACK_PAGE
environment variable:Environment and Specs
This seems to be a regression caused by #215
The text was updated successfully, but these errors were encountered: