Skip to content

Commit a798dfa

Browse files
Varun PanugantiVarun Panuganti
authored andcommitted
Static export to /docs for GitHub Pages
1 parent d0834d4 commit a798dfa

File tree

4 files changed

+18
-9
lines changed

4 files changed

+18
-9
lines changed

next.config.mjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/** @type {import('next').NextConfig} */
2+
const nextConfig = {
3+
output: "export",
4+
images: { unoptimized: true },
5+
trailingSlash: true,
6+
};
7+
8+
export default nextConfig;

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
"scripts": {
66
"dev": "next dev --turbopack",
77
"build": "next build --turbopack",
8+
"export": "next export -o docs",
9+
"static": "npm run build && npm run export",
810
"start": "next start",
911
"lint": "eslint"
1012
},
@@ -25,3 +27,4 @@
2527
"@eslint/eslintrc": "^3"
2628
}
2729
}
30+

src/app/page.tsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default function Page() {
2424
href="/Varun_Panuganti_OG_Resume.pdf"
2525
className="rounded-2xl border border-foreground/20 px-5 py-3 text-sm font-medium hover:bg-foreground/5 transition"
2626
>
27-
View Résumé
27+
View Resume
2828
</a>
2929
</div>
3030

@@ -35,14 +35,6 @@ export default function Page() {
3535
<li className="h-1 w-1 rounded-full bg-zinc-400/70" />
3636
<li>Full-Stack (FastAPI • Next.js)</li>
3737
</ul>
38-
39-
{/* Accent block */}
40-
<div className="mt-14 rounded-3xl border border-zinc-200 dark:border-zinc-800 p-6 bg-white dark:bg-zinc-950">
41-
<h2 className="text-lg font-semibold">Currently</h2>
42-
<p className="mt-2 text-sm text-zinc-700 dark:text-zinc-300">
43-
Building an LLM ensemble confidence scoring tool and a healthcare forecasting dashboard (readmission risk, LSTM COVID/flu, med demand).
44-
</p>
45-
</div>
4638
</section>
4739
);
4840
}

src/app/projects/[slug]/page.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
import { notFound } from "next/navigation";
22
import { projects } from "../../../lib/projects";
33

4+
export const dynamic = "error"; // ensure static only
5+
46
type Props = { params: { slug: string } };
57

8+
export function generateStaticParams() {
9+
return projects.map((p) => ({ slug: p.slug }));
10+
}
11+
612
export function generateMetadata({ params }: Props) {
713
const p = projects.find((x) => x.slug === params.slug);
814
return {

0 commit comments

Comments
 (0)