fix: correct page directory casing for case-sensitive filesystems
All checks were successful
CI / build (push) Successful in 1m16s
CI / cleanup-branch (push) Has been skipped
CI / docker (push) Successful in 1m12s
CI / deploy (push) Successful in 1m1s
CI / deploy-feature (push) Has been skipped

Rename admin/ → Admin/ and swagger/ → Swagger/ to match router imports.
Windows is case-insensitive so the mismatch was invisible locally.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-03-19 17:43:42 +01:00
parent 9613bddc60
commit 045d9ea890
6 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
import { useEffect, useRef } from 'react';
import { config } from '../../config';
export default function SwaggerPage() {
const containerRef = useRef<HTMLDivElement>(null);
useEffect(() => {
let cleanup: (() => void) | undefined;
import('swagger-ui-dist/swagger-ui-bundle').then(({ default: SwaggerUIBundle }) => {
if (!containerRef.current) return;
SwaggerUIBundle({
url: `${config.apiBaseUrl}/api-docs`,
domNode: containerRef.current,
presets: [],
layout: 'BaseLayout',
});
});
return () => cleanup?.();
}, []);
return (
<div>
<h2 style={{ marginBottom: '1rem' }}>API Documentation</h2>
<div ref={containerRef} />
</div>
);
}