Skip to content

Conversation

ricoberger
Copy link
Member

Until now we only checked if a requested url contains a dot (".") to
invoke our static file handler. This could lead to a problem, so that a
page was not correctly served when it also contains a dot, because we
assumed that it must be a static file.

Now we are checking if the requested path contains "/static/" or one of
the listed file extensions to invoke our static file handler. If none of
these conditions match we serve our React app.

Until now we only checked if a requested url contains a dot (".") to
invoke our static file handler. This could lead to a problem, so that a
page was not correctly served when it also contains a dot, because we
assumed that it must be a static file.

Now we are checking if the requested path contains "/static/" or one of
the listed file extensions to invoke our static file handler. If none of
these conditions match we serve our React app.
@ricoberger ricoberger merged commit d641ede into main Jun 16, 2022
@ricoberger ricoberger deleted the fix-static-file-handling branch June 16, 2022 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant