release v1.0.35 to fix windows logfile name

This commit is contained in:
musistudio
2025-08-10 22:11:51 +08:00
parent b856e1e11b
commit 709b49b0e8
2 changed files with 2 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "@musistudio/claude-code-router", "name": "@musistudio/claude-code-router",
"version": "1.0.34", "version": "1.0.35",
"description": "Use Claude Code without an Anthropics account and route it to another LLM provider", "description": "Use Claude Code without an Anthropics account and route it to another LLM provider",
"bin": { "bin": {
"ccr": "./dist/cli.js" "ccr": "./dist/cli.js"

View File

@@ -82,8 +82,6 @@ async function run(options: RunOptions = {}) {
? parseInt(process.env.SERVICE_PORT) ? parseInt(process.env.SERVICE_PORT)
: port; : port;
const startTime = new Date().toISOString();
const server = createServer({ const server = createServer({
jsonPath: CONFIG_FILE, jsonPath: CONFIG_FILE,
initialConfig: { initialConfig: {
@@ -101,7 +99,7 @@ async function run(options: RunOptions = {}) {
level: "debug", level: "debug",
stream: createWriteStream({ stream: createWriteStream({
path: HOME_DIR, path: HOME_DIR,
filename: `./logs/ccr-${startTime}.log`, filename: config.LOGNAME || `./logs/ccr-${+new Date()}.log`,
maxFiles: 3, maxFiles: 3,
interval: "1d", interval: "1d",
}), }),