fix(server/caddy): certificats on-demand TLS émis correctement

- next.config.js: skipTrailingSlashRedirect évite le 308 sur /api/check-domain
- middleware.ts: exclut /api/check-domain du rewrite pour ne pas interférer
- Caddy peut maintenant valider les sous-domaines d'instances auprès du serveur
This commit is contained in:
EduBox Dev
2026-06-17 18:43:31 +00:00
parent 86b06dc417
commit 5cb70cd307
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -24,5 +24,5 @@ export function middleware(req: NextRequest) {
} }
export const config = { export const config = {
matcher: ["/((?!api/proxy|_next|static|favicon.ico).*)"], matcher: ["/((?!api/proxy|api/check-domain|_next|static|favicon.ico).*)",],
}; };
+1
View File
@@ -1,6 +1,7 @@
/** @type {import('next').NextConfig} */ /** @type {import('next').NextConfig} */
const nextConfig = { const nextConfig = {
trailingSlash: true, trailingSlash: true,
skipTrailingSlashRedirect: true,
} }
module.exports = nextConfig module.exports = nextConfig