diff --git a/.woodpecker.yml b/.woodpecker.yml index e9b712b..1ba17e4 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -132,9 +132,13 @@ steps: - ls -la dist/ - echo "Deploying to production" - mkdir -p ~/.ssh + - echo "SSH key length: $(echo $SSH_PRIVATE_KEY | wc -c)" + - echo "First 50 chars of SSH key: $(echo $SSH_PRIVATE_KEY | cut -c1-50)" - echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa - - echo "Pre-deployment checks" + - echo "SSH key file created, checking permissions:" + - ls -la ~/.ssh/ + - echo "Testing SSH connection..." - ssh -o StrictHostKeyChecking=no root@139.155.109.62 "echo 'Server connection OK'" - ssh -o StrictHostKeyChecking=no root@139.155.109.62 "df -h | grep -E '/$|/home'" - echo "Syncing build artifacts to production server" diff --git a/src/app/layout.tsx b/src/app/layout.tsx index ab87da8..7b7d29a 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,5 +1,5 @@ import type { Metadata, Viewport } from "next"; -import { Geist, Geist_Mono, Noto_Sans_SC, Ma_Shan_Zheng, Long_Cang } from "next/font/google"; +// import { Geist, Geist_Mono, Noto_Sans_SC, Ma_Shan_Zheng, Long_Cang } from "next/font/google"; import "./globals.css"; import { ThemeProvider } from "@/contexts/theme-context"; import { WebVitals } from "@/components/analytics/web-vitals"; @@ -17,43 +17,44 @@ import { initSentry } from "@/lib/sentry"; initSentry(); -const geistSans = Geist({ - variable: "--font-geist-sans", - subsets: ["latin"], - display: "swap", - preload: false, -}); +// 临时禁用 Google 字体以解决 CI 构建问题 +// const geistSans = Geist({ +// variable: "--font-geist-sans", +// subsets: ["latin"], +// display: "swap", +// preload: false, +// }); -const geistMono = Geist_Mono({ - variable: "--font-geist-mono", - subsets: ["latin"], - display: "swap", - preload: false, -}); +// const geistMono = Geist_Mono({ +// variable: "--font-geist-mono", +// subsets: ["latin"], +// display: "swap", +// preload: false, +// }); -const notoSansSC = Noto_Sans_SC({ - weight: ["400", "500", "700"], - variable: "--font-noto-sans-sc", - subsets: ["latin"], - display: "swap", - preload: true, -}); +// const notoSansSC = Noto_Sans_SC({ +// weight: ["400", "500", "700"], +// variable: "--font-noto-sans-sc", +// subsets: ["latin"], +// display: "swap", +// preload: true, +// }); -const maShanZheng = Ma_Shan_Zheng({ - weight: "400", - variable: "--font-ma-shan-zheng", - subsets: ["latin"], - display: "swap", - preload: false, -}); +// const maShanZheng = Ma_Shan_Zheng({ +// weight: "400", +// variable: "--font-ma-shan-zheng", +// subsets: ["latin"], +// display: "swap", +// preload: false, +// }); -const longCang = Long_Cang({ - weight: "400", - variable: "--font-long-cang", - subsets: ["latin"], - display: "swap", - preload: false, -}); +// const longCang = Long_Cang({ +// weight: "400", +// variable: "--font-long-cang", +// subsets: ["latin"], +// display: "swap", +// preload: false, +// }); export const metadata: Metadata = { title: { @@ -150,8 +151,8 @@ export default function RootLayout({ /> diff --git a/src/lib/upload.ts b/src/lib/upload.ts index 1666d39..f99e085 100644 --- a/src/lib/upload.ts +++ b/src/lib/upload.ts @@ -4,7 +4,7 @@ import path from 'path'; import { nanoid } from 'nanoid'; function getWorkingDirectory(): string { - return process.cwd(); + return /*turbopackIgnore: true*/ process.cwd(); } function buildUploadPath(type: string, datePath: string): string {