chore: upgrade to Java 21 and Kotlin 2.4.10, harden home redirect
- Run the image on amazoncorretto:21 (matches CI test JDK) - Bump Kotlin and serialization plugin to 2.4.10 - Ignore backend build dir in Docker context - Home redirect: render HomeView and tolerate non-array getPlans() response Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
23e3c6a990
commit
fc0b380b35
4 files changed
+6
-5
No files matched your search
@@ -1,3 +1,4 @@
|
||||
node_modules
|
||||
public/node_modules
|
||||
public/dist
|
||||
private/minis-backend/build
|
||||
+1
-1
@@ -16,7 +16,7 @@ RUN npm install
|
||||
RUN npm run build-only
|
||||
|
||||
|
||||
FROM amazoncorretto:18 as miniplan
|
||||
FROM amazoncorretto:21 as miniplan
|
||||
LABEL authors="walamana"
|
||||
|
||||
RUN mkdir -p /app/public
|
||||
|
||||
@@ -5,9 +5,9 @@ val logback_version: String by project
|
||||
val exposed_version: String by project
|
||||
val h2_version: String by project
|
||||
plugins {
|
||||
kotlin("jvm") version "2.3.21"
|
||||
kotlin("jvm") version "2.4.10"
|
||||
id("io.ktor.plugin") version "3.5.1"
|
||||
kotlin("plugin.serialization") version "2.3.21"
|
||||
kotlin("plugin.serialization") version "2.4.10"
|
||||
id("com.palantir.docker") version "0.36.0"
|
||||
}
|
||||
|
||||
|
||||
@@ -13,9 +13,9 @@ const router = createRouter({
|
||||
{
|
||||
path: "/",
|
||||
name: "home-redirect",
|
||||
component: null,
|
||||
component: HomeView,
|
||||
beforeEnter: async (to, from) => {
|
||||
const groups = (await API.getPlans())
|
||||
const groups = (await API.getPlans().then(res => Array.isArray(res) ? res : []))
|
||||
.sort((a, b) => a.id - b.id)
|
||||
return {
|
||||
name: "home",
|
||||
|
||||
Reference in new issue
Block a user