Migrate dependencies: bcrypt→@node-rs/argon2, sanitize-html→isomorphic-dompurify, remove nodemailer/next-view-transitions
Deploy / release (push) Skipped
Deploy / deploy (push) Failing after 27s

This commit is contained in:
openhands committed 2026-07-28 19:03:04 +02:00
1 parent 3827f3e686
commit a513d9b7bd
8 files changed
+564 -1132

No files matched your search

+2 -17
View File
@@ -33,22 +33,7 @@ export async function GET() {
const emulator = await rcon.send("ping", null).catch(() => false);
let smtp = null;
if (env.SMTP_HOST) {
const nodemailer = await import("nodemailer");
const test = nodemailer.createTransport({
host: env.SMTP_HOST,
port: env.SMTP_PORT,
secure: env.SMTP_SECURE,
auth: env.SMTP_USER
? { user: env.SMTP_USER, pass: env.SMTP_PASSWORD ?? "" }
: undefined,
});
smtp = await test
.verify()
.then(() => true)
.catch(() => false);
}
const resendAvailable = !!env.RESEND_API_KEY;
const degraded = !database || redisOk === false;
return apiJson({
@@ -56,7 +41,7 @@ export async function GET() {
database,
redis: redisOk,
emulator,
smtp,
resend: resendAvailable,
node: process.version,
uptime: Math.round(process.uptime()),
time: new Date().toISOString(),
+2 -2
View File
@@ -4,7 +4,7 @@ import { headers } from "next/headers";
import Script from "next/script";
import { NextIntlClientProvider } from "next-intl";
import { getLocale, getMessages } from "next-intl/server";
import { ViewTransitions } from "next-view-transitions";
import type { ReactNode } from "react";
import { Toaster } from "sonner";
import { PwaRegister } from "@/components/pwa-register";
@@ -90,7 +90,7 @@ export default async function RootLayout({
>
<NextIntlClientProvider locale={locale} messages={messages}>
<ThemeVars nonce={nonce} />
<ViewTransitions>{children}</ViewTransitions>
{children}
<PwaRegister />
<SmoothScroll />
<Toaster