🔧 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:
parent
17d8847003
commit
79931f3c72
3 changed files with 3 additions and 3 deletions
|
@ -66,7 +66,7 @@ tasks {
|
|||
}
|
||||
}
|
||||
from({ Paths.get(project(":frontend").buildDir.path) }){
|
||||
into("frontend/.next")
|
||||
into("frontend/out")
|
||||
}
|
||||
doLast {
|
||||
configurations.runtimeClasspath.get().forEach {
|
||||
|
|
|
@ -27,7 +27,7 @@ fun configureRouting(): ApplicationEngine = embeddedServer(CIO, applicationEngin
|
|||
}
|
||||
routing {
|
||||
singlePageApplication{
|
||||
react("frontend/.next")
|
||||
react("frontend/out")
|
||||
ignoreFiles {
|
||||
it.endsWith(".txt")
|
||||
}
|
||||
|
|
|
@ -7,4 +7,4 @@ tasks.assemble {
|
|||
dependsOn("yarn", "yarn_build")
|
||||
}
|
||||
|
||||
project.buildDir = File(".next")
|
||||
project.buildDir = File("out")
|
Reference in a new issue