Files
pixivnow/wrangler.toml
JuLuogo 1147cd270b feat: 迁移到Cloudflare Workers并重构API请求处理
refactor: 使用fetch替换axios并优化请求处理逻辑

docs: 添加DEPLOYMENT.md部署指南

build: 更新package.json依赖和脚本配置

style: 更新组件类型定义和注释

perf: 优化图片代理和用户数据初始化逻辑
2025-10-08 15:53:36 +08:00

21 lines
695 B
TOML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

name = "pixivnow-worker"
main = "functions/[[path]].ts"
compatibility_date = "2023-10-30"
# 环境变量配置
# 这些变量都有默认值,可以根据需要自定义
[vars]
# User-Agent 黑名单JSON 数组格式)
UA_BLACKLIST = "[]"
# 自定义 User-Agent可选有默认值
# USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"
# 自定义图片代理 URL可选默认使用 Pixiv 原始 URL
# 示例配置:
# VITE_PXIMG_BASEURL_I = "https://i.pixiv.re/"
# VITE_PXIMG_BASEURL_S = "https://s.pixiv.re/"
VITE_PXIMG_BASEURL_I = "https://i.pixiv.re/"
VITE_PXIMG_BASEURL_S = "https://s.pixiv.re/"
[[rules]]
type = "ESModule"
globs = ["**/*.ts"]