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:
parent
f6758c165c
commit
8fb358a984
1 changed files with 1 additions and 3 deletions
|
|
@ -1,7 +1,5 @@
|
||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
export const runtime = "edge";
|
|
||||||
|
|
||||||
import { use, useState, useEffect, useMemo } from "react";
|
import { use, useState, useEffect, useMemo } from "react";
|
||||||
import { Navbar } from "@/components/navbar";
|
import { Navbar } from "@/components/navbar";
|
||||||
import { Footer } from "@/components/footer";
|
import { Footer } from "@/components/footer";
|
||||||
|
|
@ -339,7 +337,7 @@ export default function JobDetailPage({
|
||||||
<CardTitle className="text-xl">{t("jobs.details.aboutRole")}</CardTitle>
|
<CardTitle className="text-xl">{t("jobs.details.aboutRole")}</CardTitle>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
<CardContent className="prose prose-sm max-w-none">
|
<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>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
</motion.div>
|
</motion.div>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue