Преглед на файлове

feat: add resume redirection

rriecc преди 1 година
родител
ревизия
36ee6a31c0
променени са 1 файла, в които са добавени 13 реда и са изтрити 0 реда
  1. 13 0
      app/resume/page.ts

+ 13 - 0
app/resume/page.ts

@@ -0,0 +1,13 @@
+import { redirect } from "next/navigation";
+
+import { getPhotoUrl } from "@/firebase/db/photo";
+
+const Page = async () => {
+  const resumeUrl = await getPhotoUrl("Chengxiang-Wu-Resume-2024.pdf");
+
+  redirect(resumeUrl);
+
+  return null;
+};
+
+export default Page;