mirror of
https://github.com/soconnor0919/personal-website.git
synced 2025-12-12 23:04:43 -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" />
|
||||||
/// <reference types="next/image-types/global" />
|
/// <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
|
// NOTE: This file should not be edited
|
||||||
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
|
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ const nextConfig = {
|
|||||||
bodySizeLimit: "2mb",
|
bodySizeLimit: "2mb",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
turbopack: {},
|
||||||
webpack: (config) => {
|
webpack: (config) => {
|
||||||
config.resolve.alias.canvas = false;
|
config.resolve.alias.canvas = false;
|
||||||
config.resolve.alias.encoding = false;
|
config.resolve.alias.encoding = false;
|
||||||
@@ -20,6 +21,14 @@ const nextConfig = {
|
|||||||
// Add this section
|
// Add this section
|
||||||
async rewrites() {
|
async rewrites() {
|
||||||
return [
|
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*",
|
source: "/content/:path*",
|
||||||
destination: "/api/content/:path*",
|
destination: "/api/content/:path*",
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "bun run update-pdfs && next build",
|
"build": "next build",
|
||||||
"dev": "next dev",
|
"dev": "next dev",
|
||||||
"lint": "next lint",
|
"lint": "next lint",
|
||||||
"lint:fix": "next lint --fix",
|
"lint:fix": "next lint --fix",
|
||||||
@@ -72,4 +72,4 @@
|
|||||||
"@types/react": "19.2.7",
|
"@types/react": "19.2.7",
|
||||||
"@types/react-dom": "19.2.3"
|
"@types/react-dom": "19.2.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Binary file not shown.
Binary file not shown.
@@ -521,10 +521,7 @@ export default function CVPage() {
|
|||||||
</Tabs>
|
</Tabs>
|
||||||
</div>
|
</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>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,11 +13,15 @@
|
|||||||
"noUncheckedIndexedAccess": true,
|
"noUncheckedIndexedAccess": true,
|
||||||
"checkJs": true,
|
"checkJs": true,
|
||||||
/* Bundled projects */
|
/* Bundled projects */
|
||||||
"lib": ["dom", "dom.iterable", "ES2022"],
|
"lib": [
|
||||||
|
"dom",
|
||||||
|
"dom.iterable",
|
||||||
|
"ES2022"
|
||||||
|
],
|
||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
"module": "ESNext",
|
"module": "ESNext",
|
||||||
"moduleResolution": "Bundler",
|
"moduleResolution": "Bundler",
|
||||||
"jsx": "preserve", // or "react" for older versions
|
"jsx": "react-jsx", // or "react" for older versions
|
||||||
"plugins": [
|
"plugins": [
|
||||||
{
|
{
|
||||||
"name": "next"
|
"name": "next"
|
||||||
@@ -27,7 +31,9 @@
|
|||||||
/* Path Aliases */
|
/* Path Aliases */
|
||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
"paths": {
|
"paths": {
|
||||||
"~/*": ["./src/*"]
|
"~/*": [
|
||||||
|
"./src/*"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
@@ -37,7 +43,12 @@
|
|||||||
"**/*.tsx",
|
"**/*.tsx",
|
||||||
"**/*.cjs",
|
"**/*.cjs",
|
||||||
"**/*.js",
|
"**/*.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