refactor: Migrate CV/resume PDFs to external hosting and update Next.js build configuration.

This commit is contained in:
2025-12-01 01:01:43 -05:00
parent 4f1493d7be
commit 86c9bde23e
7 changed files with 29 additions and 12 deletions

View File

@@ -12,6 +12,7 @@ const nextConfig = {
bodySizeLimit: "2mb",
},
},
turbopack: {},
webpack: (config) => {
config.resolve.alias.canvas = false;
config.resolve.alias.encoding = false;
@@ -20,6 +21,14 @@ const nextConfig = {
// Add this section
async rewrites() {
return [
{
source: "/publications/cv.pdf",
destination: "https://git.soconnor.dev/soconnor/resume-cv/releases/download/latest/cv.pdf",
},
{
source: "/publications/resume.pdf",
destination: "https://git.soconnor.dev/soconnor/resume-cv/releases/download/latest/resume.pdf",
},
{
source: "/content/:path*",
destination: "/api/content/:path*",