🔧 Konfigurerte gradle.build til å hente next.js bygget
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
89f20836cf
commit
d233d7e28a
2 changed files with 9 additions and 1 deletions
|
@ -8,6 +8,7 @@ import io.ktor.server.plugins.contentnegotiation.*
|
|||
import io.ktor.serialization.kotlinx.json.*
|
||||
import io.ktor.server.cio.*
|
||||
import io.ktor.server.engine.*
|
||||
import io.ktor.server.http.content.*
|
||||
import io.ktor.server.plugins.cors.routing.*
|
||||
import io.ktor.server.request.*
|
||||
import no.nav.helse.sprik.Test
|
||||
|
@ -25,6 +26,13 @@ fun configureRouting(): ApplicationEngine = embeddedServer(CIO, applicationEngin
|
|||
json()
|
||||
}
|
||||
routing {
|
||||
singlePageApplication{
|
||||
filesPath = "frontend/.next/server/pages/"
|
||||
defaultPage = "index.html"
|
||||
ignoreFiles {
|
||||
it.endsWith(".txt")
|
||||
}
|
||||
}
|
||||
get("/") {
|
||||
call.respondText("Hello World!")
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
reactStrictMode: true,
|
||||
output: 'standalone',
|
||||
output: 'export',
|
||||
}
|
||||
|
||||
module.exports = nextConfig
|
||||
|
|
Reference in a new issue