release: v0.12.0 (#520)

Forty-one commits since v0.11.0. See CHANGELOG.md for the full list and the upgrade notes.
This commit is contained in:
Ralksta
2026-08-23 23:18:14 +02:00
committed by GitHub
parent 2f546f440d
commit 10ec68f493
119 changed files with 6888 additions and 758 deletions

View File

@@ -1,9 +1,19 @@
import { describe, it, expect, beforeEach, afterEach, vi } from 'vitest';
import { NextRequest } from 'next/server';
/*
* getClientIp() reads the hop count straight from the environment, not through
* getConfig(): the config resolves AUTH_SECRET, which throws in production when
* none is set — and that took down the install wizard's own API on a container
* started with no environment at all (#519).
*/
let mockHops = 0;
vi.mock('@/lib/config', () => ({
getConfig: () => ({ trustedProxyHops: mockHops }),
vi.mock('@/lib/env', () => ({
env: {
get TRUSTED_PROXY_HOPS() {
return mockHops;
},
},
}));
import {