mirror of
https://github.com/skidoodle/erettsegi-browser.git
synced 2026-04-28 13:37:35 +02:00
feat: update Next.js configuration and dependencies, add Docker support
- Set output mode to "standalone" in next.config.ts - Update dependencies in package.json: - Upgrade @heroui/react to ^2.8.5 - Upgrade framer-motion to ^12.23.25 - Upgrade next to 16.0.7 - Upgrade react and react-dom to 19.2.1 - Upgrade undici to ^7.16.0 - Upgrade devDependencies including @biomejs/biome, @tailwindcss/postcss, and typescript - Modify error handling in API routes to simplify catch blocks - Refactor NotFound component for cleaner JSX structure - Update global CSS imports for consistency - Change tsconfig to use "react-jsx" for JSX and include additional type definitions - Add GitHub Actions workflow for Docker image build and push - Create Dockerfile for multi-stage build process - Add development and production Docker Compose configurations ai commit message xd
This commit is contained in:
@@ -27,7 +27,7 @@ export async function GET(req: NextRequest) {
|
||||
let url: URL;
|
||||
try {
|
||||
url = new URL(link);
|
||||
} catch (_error) {
|
||||
} catch {
|
||||
return NextResponse.json(
|
||||
{ error: "Érvénytelen link formátum" },
|
||||
{ status: 400 },
|
||||
|
||||
@@ -34,7 +34,7 @@ export async function GET(req: NextRequest) {
|
||||
let url: URL;
|
||||
try {
|
||||
url = new URL(link);
|
||||
} catch (_error) {
|
||||
} catch {
|
||||
return NextResponse.json(
|
||||
{ error: "Érvénytelen link formátum" },
|
||||
{ status: 400 },
|
||||
|
||||
+13
-15
@@ -6,21 +6,19 @@ import Link from "next/link";
|
||||
|
||||
export default function NotFound() {
|
||||
return (
|
||||
<>
|
||||
<main className="dark:bg-[#121212] text-foreground bg-background py-5">
|
||||
<div className="flex min-h-screen flex-col items-center justify-center">
|
||||
<h1 className="text-7xl font-bold text-blue-400">404</h1>
|
||||
<div className="mt-5 mb-3 text-center">
|
||||
<p className="text-2xl font-semibold text-gray-600">
|
||||
Az keresett oldal nem található.
|
||||
</p>
|
||||
<Link href="/" className="mt-8 inline-block">
|
||||
<Button color="primary">Vissza a főoldalra</Button>
|
||||
</Link>
|
||||
</div>
|
||||
<main className="dark:bg-[#121212] text-foreground bg-background py-5">
|
||||
<div className="flex min-h-screen flex-col items-center justify-center">
|
||||
<h1 className="text-7xl font-bold text-blue-400">404</h1>
|
||||
<div className="mt-5 mb-3 text-center">
|
||||
<p className="text-2xl font-semibold text-gray-600">
|
||||
Az keresett oldal nem található.
|
||||
</p>
|
||||
<Link href="/" className="mt-8 inline-block">
|
||||
<Button color="primary">Vissza a főoldalra</Button>
|
||||
</Link>
|
||||
</div>
|
||||
<Footer />
|
||||
</main>
|
||||
</>
|
||||
</div>
|
||||
<Footer />
|
||||
</main>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ const ResourceComponent = ({ label, link }: ResourceProps) => {
|
||||
const response = await fetch(`/api/validate?link=${encodeURI(link)}`);
|
||||
const data = (await response.json()) as { status: number };
|
||||
setStatus(data.status);
|
||||
} catch (_error) {
|
||||
} catch {
|
||||
setStatus(500);
|
||||
} finally {
|
||||
setIsLoading(false);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
@import "tailwindcss";
|
||||
@plugin './hero.ts';
|
||||
@plugin "./hero.ts";
|
||||
|
||||
@source '../../node_modules/@heroui/theme/dist/**/*.{js,ts,jsx,tsx}';
|
||||
@source "../../node_modules/@heroui/theme/dist/**/*.{js,ts,jsx,tsx}";
|
||||
@custom-variant dark (&:is(.dark *));
|
||||
|
||||
@layer base {
|
||||
|
||||
Reference in New Issue
Block a user