fix(account): configure production backend endpoint

This commit is contained in:
2026-05-19 21:19:57 +08:00
parent 87d0cdc036
commit 932e69fca7
2 changed files with 16 additions and 0 deletions
+1
View File
@@ -1,2 +1,3 @@
VITE_APM_STORE_BASE_URL=https://erotica.spark-app.store
VITE_APM_STORE_STATS_BASE_URL=https://feedback.spark-app.store
VITE_SPARK_BACKEND_BASE_URL=https://account.spark-app.store
+15
View File
@@ -1,3 +1,7 @@
import { readFileSync } from "node:fs";
import { dirname, resolve } from "node:path";
import { fileURLToPath } from "node:url";
import { describe, expect, it } from "vitest";
import {
@@ -14,7 +18,18 @@ import type {
SyncedAppListItem,
} from "@/global/typedefinition";
const productionEnv = readFileSync(
resolve(dirname(fileURLToPath(import.meta.url)), "../../../.env.production"),
"utf-8",
);
describe("account shared types", () => {
it("points production account requests at the public account service", () => {
expect(productionEnv).toContain(
"VITE_SPARK_BACKEND_BASE_URL=https://account.spark-app.store",
);
});
it("exports backend/forum config and account shapes", () => {
const user: SparkUser = {
id: 1,