From c52f91bc7b984becfdd30e3958ecf8add18df8ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amalie=20Mans=C3=A5ker?= Date: Thu, 13 Jul 2023 14:37:39 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Pr=C3=B8v=20=C3=A5=20bootstrap?= =?UTF-8?q?=C2=B4e=20uten=20react=20helper?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Markus A. R. Johansen Co-authored-by: Sindre Kjelsrud Co-authored-by: Christian Bülow Skovborg --- backend/src/main/kotlin/no/nav/helse/sprik/plugins/Routing.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/src/main/kotlin/no/nav/helse/sprik/plugins/Routing.kt b/backend/src/main/kotlin/no/nav/helse/sprik/plugins/Routing.kt index 28efaea..551c45b 100644 --- a/backend/src/main/kotlin/no/nav/helse/sprik/plugins/Routing.kt +++ b/backend/src/main/kotlin/no/nav/helse/sprik/plugins/Routing.kt @@ -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") }