Fix deploying process.

This commit is contained in:
2025-05-08 00:10:58 +08:00
parent 4682fe3eb4
commit 357097bb2b
6 changed files with 28 additions and 13 deletions
+1 -3
View File
@@ -10,9 +10,7 @@ export default function HealthStatus() {
const checkHealth = async () => {
try {
setLoading(true);
const response = await fetch(
`${process.env.NEXT_PUBLIC_BACKEND_URL}/health`
);
const response = await fetch(`${process.env.BACKEND_URL}/health`);
if (!response.ok) {
throw new Error(`Server responded with status: ${response.status}`);
+3 -3
View File
@@ -36,7 +36,7 @@ export function AuthProvider({ children }: { children: ReactNode }) {
const checkAuthStatus = async () => {
try {
const response = await fetch(
`${process.env.NEXT_PUBLIC_BACKEND_URL}/auth/user-id-token-claims`,
`${process.env.BACKEND_URL}/auth/user-id-token-claims`,
{
credentials: "include",
}
@@ -60,11 +60,11 @@ export function AuthProvider({ children }: { children: ReactNode }) {
};
const login = () => {
window.location.href = `${process.env.NEXT_PUBLIC_BACKEND_URL}/auth/sign-in`;
window.location.href = `${process.env.BACKEND_URL}/auth/sign-in`;
};
const logout = () => {
window.location.href = `${process.env.NEXT_PUBLIC_BACKEND_URL}/auth/sign-out`;
window.location.href = `${process.env.BACKEND_URL}/auth/sign-out`;
};
return (