🔧 Prøver å hente frontend med react() i Routing.kts
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>
This commit is contained in:
parent
670eb3ae73
commit
9eecff369c
1 changed files with 1 additions and 3 deletions
|
@ -27,9 +27,7 @@ fun configureRouting(): ApplicationEngine = embeddedServer(CIO, applicationEngin
|
||||||
}
|
}
|
||||||
routing {
|
routing {
|
||||||
singlePageApplication{
|
singlePageApplication{
|
||||||
useResources = true //?????????????????????
|
react("frontend/.next")
|
||||||
filesPath = "frontend/.next/server/pages/"
|
|
||||||
defaultPage = "index.html"
|
|
||||||
ignoreFiles {
|
ignoreFiles {
|
||||||
it.endsWith(".txt")
|
it.endsWith(".txt")
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue