From 9eecff369c75aead7446a348cd088cd5501854cb Mon Sep 17 00:00:00 2001
From: Markus Johansen <markus.aleksander.rakil.johansen@nav.no>
Date: Thu, 13 Jul 2023 13:18:52 +0200
Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Pr=C3=B8ver=20=C3=A5=20hente=20f?=
 =?UTF-8?q?rontend=20med=20react()=20i=20Routing.kts?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Co-authored-by: Amalie Mansåker <amalie.erdal.mansaker@nav.no>
Co-authored-by: Sindre Kjelsrud <sindre.kjelsrud@nav.no>
Co-authored-by: Øydis Kind Refsum <oydis.kind.refsum@nav.no>
Co-authored-by: Helene Arnesen <helene.arnesen@nav.no>
---
 backend/src/main/kotlin/no/nav/helse/sprik/plugins/Routing.kt | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

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 b2d70ec..a47adc5 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,9 +27,7 @@ fun configureRouting(): ApplicationEngine = embeddedServer(CIO, applicationEngin
         }
         routing {
             singlePageApplication{
-                useResources = true //?????????????????????
-                filesPath = "frontend/.next/server/pages/"
-                defaultPage = "index.html"
+                react("frontend/.next")
                 ignoreFiles {
                     it.endsWith(".txt")
                 }