change url

This commit is contained in:
smanylov
2025-12-03 15:38:54 +07:00
parent 46cf768bd8
commit c0acec016b
3 changed files with 7 additions and 7 deletions
+5 -6
View File
@@ -6,7 +6,7 @@ import { redirect } from 'next/navigation';
const API_BASE_URL = process.env.NODE_ENV === 'development'
? 'http://localhost'
: '';
: 'http://ncp-3_app:8080';
export async function logout() {
const token = await getSessionData('token');
@@ -114,18 +114,17 @@ export async function registration(
await createSession(parsed.token, email);
} else {
throw new Error(`
Something went wrong. from server1 \n
${API_BASE_URL}/api/auth/register \n
curr url \n
Something went wrong. from server
${API_BASE_URL}/api/auth/register
`);
}
} catch (error) {
if (error) {
const errors: Record<string, string> = {}
errors['server'] = `
Something went wrong. from server22 \n
${API_BASE_URL}/api/auth/register \n
${API_BASE_URL}/api/auth/register
error-- ${error}
`
return errors;