🔧 Sørger for at frontend bundles i jar

Co-authored-by: Sindre Kjelsrud <sindre.kjelsrud@nav.no>
Co-authored-by: Amalie Mansåker <amalie.erdal.mansaker@nav.no>
Co-authored-by: Christian Bulow Skovborg <christian.bulow.skovborg@nav.no>
This commit is contained in:
Markus Johansen 2023-07-13 13:48:51 +02:00
parent 17d8847003
commit 79931f3c72
3 changed files with 3 additions and 3 deletions

View file

@ -66,7 +66,7 @@ tasks {
}
}
from({ Paths.get(project(":frontend").buildDir.path) }){
into("frontend/.next")
into("frontend/out")
}
doLast {
configurations.runtimeClasspath.get().forEach {

View file

@ -27,7 +27,7 @@ fun configureRouting(): ApplicationEngine = embeddedServer(CIO, applicationEngin
}
routing {
singlePageApplication{
react("frontend/.next")
react("frontend/out")
ignoreFiles {
it.endsWith(".txt")
}

View file

@ -7,4 +7,4 @@ tasks.assemble {
dependsOn("yarn", "yarn_build")
}
project.buildDir = File(".next")
project.buildDir = File("out")