🔧 Prøv å bootstrap´e uten react helper

Co-authored-by: Markus A. R. Johansen <markus.aleksander.rakil.johansen@nav.no>
Co-authored-by: Sindre Kjelsrud <sindre.kjelsrud@nav.no>
Co-authored-by: Christian Bülow Skovborg <christian.bulow.skovborg@nav.no>
This commit is contained in:
Amalie Mansåker 2023-07-13 14:37:39 +02:00
parent 79931f3c72
commit c52f91bc7b

View file

@ -27,7 +27,9 @@ fun configureRouting(): ApplicationEngine = embeddedServer(CIO, applicationEngin
}
routing {
singlePageApplication{
react("frontend/out")
useResources = true
filesPath = "frontend/out"
defaultPage = "index.html"
ignoreFiles {
it.endsWith(".txt")
}