chore(env): add bundled test accounts and seed admin

这个提交包含在:
anygen-build-bot
2026-02-12 10:34:29 +00:00
父节点 15211a99de
当前提交 6585ff6d68
修改 4 个文件,包含 44 行新增2 行删除

查看文件

@@ -13,8 +13,12 @@ export default function AuthPage() {
);
const [mode, setMode] = useState<"register" | "login">("register");
const [username, setUsername] = useState("");
const [password, setPassword] = useState("");
const [username, setUsername] = useState(
process.env.NEXT_PUBLIC_TEST_USERNAME ?? ""
);
const [password, setPassword] = useState(
process.env.NEXT_PUBLIC_TEST_PASSWORD ?? ""
);
const [loading, setLoading] = useState(false);
const [resp, setResp] = useState<AuthResp | null>(null);