fix: remove edge runtime from job detail page and add description fallback

Remove `export const runtime = "edge"` which could interfere with i18n
JSON imports causing translation keys to render as literal text. Also
add fallback text when job description is empty.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Tiago Yamamoto 2026-02-18 05:56:59 -06:00
parent f6758c165c
commit 8fb358a984

View file

@ -1,7 +1,5 @@
"use client";
export const runtime = "edge";
import { use, useState, useEffect, useMemo } from "react";
import { Navbar } from "@/components/navbar";
import { Footer } from "@/components/footer";
@ -339,7 +337,7 @@ export default function JobDetailPage({
<CardTitle className="text-xl">{t("jobs.details.aboutRole")}</CardTitle>
</CardHeader>
<CardContent className="prose prose-sm max-w-none">
<p className="text-muted-foreground leading-relaxed whitespace-pre-line">{job.description}</p>
<p className="text-muted-foreground leading-relaxed whitespace-pre-line">{job.description || t("jobs.details.meta.notInformed")}</p>
</CardContent>
</Card>
</motion.div>