mirror of
https://github.com/soconnor0919/personal-website.git
synced 2025-12-11 06:14:44 -05:00
refactor: Migrate CV/resume PDFs to external hosting and update Next.js build configuration.
This commit is contained in:
2
next-env.d.ts
vendored
2
next-env.d.ts
vendored
@@ -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.
|
||||
|
||||
@@ -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*",
|
||||
|
||||
@@ -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.
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -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/**/*"
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user