update config

This commit is contained in:
smanylov
2026-01-06 19:12:12 +07:00
parent 052c66fd7c
commit bde030d5b5
4 changed files with 7 additions and 2 deletions
+2
View File
@@ -0,0 +1,2 @@
SESSION_SECRET=odW+sq1yKte/gMgUUu/B/OyXqr45/LMYplPVOlWc+uo=
DEV_URL=http://localhost
+1 -1
View File
@@ -31,7 +31,7 @@ yarn-error.log*
.pnpm-debug.log* .pnpm-debug.log*
# env files (can opt-in for committing if needed) # env files (can opt-in for committing if needed)
.env* # .env*
# vercel # vercel
.vercel .vercel
+2
View File
@@ -69,6 +69,8 @@ export async function authorization(
}; };
} }
console.log(`${API_BASE_URL}/api/v1/data`);
try { try {
const { email, password } = validatedFields.data; const { email, password } = validatedFields.data;
const response = await fetch(`${API_BASE_URL}/api/v1/data`, { const response = await fetch(`${API_BASE_URL}/api/v1/data`, {
+2 -1
View File
@@ -76,7 +76,8 @@ export const loginFormSchema = z
.trim(), .trim(),
}) })
export const localDevelopmentUrl = 'http://localhost'; /* export const localDevelopmentUrl = 'http://localhost'; */
export const localDevelopmentUrl = process.env.DEV_URL;
export const API_BASE_URL = process.env.NODE_ENV === 'development' export const API_BASE_URL = process.env.NODE_ENV === 'development'
? localDevelopmentUrl ? localDevelopmentUrl