From dc0d46534a77ab1a36e73f836c4248d9130bd409 Mon Sep 17 00:00:00 2001 From: cyhhao Date: Tue, 28 Feb 2023 19:12:11 +0800 Subject: [PATCH] add port --- src/scripts/sync.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/sync.ts b/src/scripts/sync.ts index cafb40a..48f419e 100644 --- a/src/scripts/sync.ts +++ b/src/scripts/sync.ts @@ -14,7 +14,7 @@ import { Retrier } from "../common/queue-task.js" let cache = loadCache() export let api = axios.create({ - baseURL: "http://localhost:3001/api/v1/", + baseURL: `http://127.0.0.1:${process.env.port || 3331}/api/v1/`, responseType: "json", headers: { "Content-Type": "application/json",