From 1d5ec28fcb7d3e6df5eed6c4cfb54f842392582a Mon Sep 17 00:00:00 2001 From: JOYCEQL <1449239013@qq.com> Date: Sun, 19 Oct 2025 23:54:11 +0800 Subject: [PATCH] fix: pdf export --- src/config/index.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/config/index.ts b/src/config/index.ts index 2e6c561..692a160 100644 --- a/src/config/index.ts +++ b/src/config/index.ts @@ -107,7 +107,8 @@ export const DEFAULT_TEMPLATES: ResumeTemplate[] = [ export const GITHUB_REPO_URL = "https://github.com/JOYCEQL/magic-resume"; export const PDF_EXPORT_CONFIG = { - SERVER_URL: "http://8.137.59.19:3000/generate-pdf", - TIMEOUT: 30000, // 30秒超时 - MAX_RETRY: 3 // 最大重试次数 + SERVER_URL: "https://api.magicv.art/generate-pdf", + TIMEOUT: 45000, // 45秒超时,给服务端更多时间 + MAX_RETRY: 2, // 减少重试次数 + MAX_CONTENT_SIZE: 5 * 1024 * 1024 // 5MB 内容大小限制 } as const;