https://kotlinlang.org logo
#ktor
Title
# ktor
c

calrissian

02/08/2022, 11:56 PM
I have some static content (javascript) that I would like to be able to call different host based on the environment (local, dev, prod) that the ktor server is running in.. ideas of if there is a way to accomplish this?
b

Big Chungus

02/09/2022, 12:21 AM
Load them via http
Alternatively inject them via SSR like kotlinx.html
c

calrissian

02/09/2022, 12:27 AM
@Big Chungus thanks.. I needed and idea to try.. I am going to try this out and let you know where I landed ..