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

2
next-env.d.ts vendored
View File

@@ -1,6 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
/// <reference path="./.next/types/routes.d.ts" />
import "./.next/types/routes.d.ts";
// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

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*",

View File

@@ -4,7 +4,7 @@
"private": true,
"type": "module",
"scripts": {
"build": "bun run update-pdfs && next build",
"build": "next build",
"dev": "next dev",
"lint": "next lint",
"lint:fix": "next lint --fix",
@@ -72,4 +72,4 @@
"@types/react": "19.2.7",
"@types/react-dom": "19.2.3"
}
}
}

Binary file not shown.

Binary file not shown.

View File

@@ -521,10 +521,7 @@ export default function CVPage() {
</Tabs>
</div>
{/* Last Updated */}
<div className="animate-fade-in-up-delay-4 text-center text-xs text-muted-foreground">
Last updated: {new Date().toLocaleDateString()}
</div>
</div>
);
}

View File

@@ -13,11 +13,15 @@
"noUncheckedIndexedAccess": true,
"checkJs": true,
/* Bundled projects */
"lib": ["dom", "dom.iterable", "ES2022"],
"lib": [
"dom",
"dom.iterable",
"ES2022"
],
"noEmit": true,
"module": "ESNext",
"moduleResolution": "Bundler",
"jsx": "preserve", // or "react" for older versions
"jsx": "react-jsx", // or "react" for older versions
"plugins": [
{
"name": "next"
@@ -27,7 +31,9 @@
/* Path Aliases */
"baseUrl": ".",
"paths": {
"~/*": ["./src/*"]
"~/*": [
"./src/*"
]
}
},
"include": [
@@ -37,7 +43,12 @@
"**/*.tsx",
"**/*.cjs",
"**/*.js",
".next/types/**/*.ts"
".next/types/**/*.ts",
".next/dev/types/**/*.ts"
],
"exclude": ["node_modules", "drizzle.config.ts", "scripts/**/*"]
"exclude": [
"node_modules",
"drizzle.config.ts",
"scripts/**/*"
]
}