Is there a way to easily switch between developmen...
# ktor
n
Is there a way to easily switch between development and production environments without moving static assets around? Have some static assets which load fine during development but aren't being loaded in the production environment (from a Fat JAR).
d
Why do you mean by moving static asset around? Ktor doesn’t impose a way for differentiating environments. Though you can find some guidances here: https://ktor.io/servers/configuration/environments.html
n
Is there a way in Ktor to load static assets from a JAR file?
Found a function that does what I am looking for:
Route.resources
. Not very clear in the documentation that the function is used to load static assets from a JAR file via a package: https://ktor.io/servers/features/static-content.html#serving-embedded-resources