release v1.0.35 to fix windows logfile name
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
@@ -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",
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user