mirror of
https://gitlab.w-hs.de/an14051/backerup-website.git
synced 2026-07-27 17:35:29 +00:00
Merge branch 'main' of https://gitlab.w-hs.de/an14051/backerup-website
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
[
|
||||
{
|
||||
"token": "-jB8pMdeKu",
|
||||
"originalName": "liquidity-db.config.json",
|
||||
"displayName": "DB",
|
||||
"size": 5606,
|
||||
"type": "config",
|
||||
"uploadedAt": "2026-05-11T21:18:55.259Z",
|
||||
"description": "Skibidi Ligma",
|
||||
"group": "production",
|
||||
"containerName": "liquidity-db",
|
||||
"image": "postgres:16-alpine"
|
||||
}
|
||||
]
|
||||
@@ -1,10 +0,0 @@
|
||||
[
|
||||
{
|
||||
"id": "00c94c52-f312-4152-a6ee-e3ce0b23b5f8",
|
||||
"username": "admin",
|
||||
"passwordHash": "827c32b2234fc18911ec8579ad6863df63b8cc3835b1f3a3f04016dfcd46f22e609cc3c99d5e09959ff8f2787f4169206ad5a9ca83beec2e70c14f8cca110cc8",
|
||||
"salt": "c2030b38b34b2810f715453350100729",
|
||||
"role": "admin",
|
||||
"createdAt": "2026-05-12T12:46:52.082Z"
|
||||
}
|
||||
]
|
||||
@@ -14,8 +14,7 @@ const securityHeaders = [
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
output: "standalone",
|
||||
serverExternalPackages: ["@libsql/client"],
|
||||
experimental: {
|
||||
serverExternalPackages: ["@libsql/client"], productionBrowserSourceMaps: false, experimental: {
|
||||
serverActions: {
|
||||
bodySizeLimit: "500mb",
|
||||
},
|
||||
|
||||
+1
-1
@@ -75,7 +75,7 @@ export async function proxy(request: NextRequest) {
|
||||
if (token) {
|
||||
try {
|
||||
const { payload: p } = await jwtVerify(token, getSecretKey(), { algorithms: ['HS256'] })
|
||||
payload = p
|
||||
payload = p as { userId?: string; username?: string; role?: string }
|
||||
} catch {
|
||||
// expired or tampered — treat as unauthenticated
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user