The problem is that files are not resolved correctly. For instance, when I call /assets/static/file.txt on the server, I can see while debugging that in
StaticContent.kt#L86
, the file is resolved to
public/static/static/file.txt
instead of
public/static/file.txt
as I would expect. Pretty much the folder name is duplicated. Any idea what might be wrong, or wether this could be a bug in Ktor?
Eduard Boloș
11/29/2018, 7:00 AM
For anyone running into the same issue, I realised that the mistake was on my part. This is the correct setup: