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:
walamanaandClaude Opus 5.5 committed 2026-11-19 16:41:05 +01:00
1 parent 23e3c6a990
commit fc0b380b35
4 files changed
+7 -6

No files matched your search

+2 -1
View File
@@ -1,3 +1,4 @@
node_modules node_modules
public/node_modules public/node_modules
public/dist public/dist
private/minis-backend/build
+1 -1
View File
@@ -16,7 +16,7 @@ RUN npm install
RUN npm run build-only RUN npm run build-only
FROM amazoncorretto:18 as miniplan FROM amazoncorretto:21 as miniplan
LABEL authors="walamana" LABEL authors="walamana"
RUN mkdir -p /app/public RUN mkdir -p /app/public
+2 -2
View File
@@ -5,9 +5,9 @@ val logback_version: String by project
val exposed_version: String by project val exposed_version: String by project
val h2_version: String by project val h2_version: String by project
plugins { plugins {
kotlin("jvm") version "2.3.21" kotlin("jvm") version "2.4.10"
id("io.ktor.plugin") version "3.5.1" 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" id("com.palantir.docker") version "0.36.0"
} }
+2 -2
View File
@@ -13,9 +13,9 @@ const router = createRouter({
{ {
path: "/", path: "/",
name: "home-redirect", name: "home-redirect",
component: null, component: HomeView,
beforeEnter: async (to, from) => { 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) .sort((a, b) => a.id - b.id)
return { return {
name: "home", name: "home",