Join Slack
I have some static content (javascript) that I would like to be able to call different host based on...
# 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
Big Chungus
02/09/2022, 12:21 AM
https://github.com/mpetuska/kamp/blob/master/app/src/jsMain/kotlin/app/config/env.kt#L14
🙌🏿 1
Big Chungus
02/09/2022, 12:22 AM
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 ..
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by