remove network

This commit is contained in:
smanylov
2025-12-03 15:46:47 +07:00
parent c0acec016b
commit 7fa4631ecb
2 changed files with 3 additions and 13 deletions
+1 -7
View File
@@ -15,10 +15,4 @@ services:
volumes:
- ./public:/app/public
- ./package.json:/app/package.json
restart: unless-stopped
networks:
- app-network
networks:
app-network:
name: app-network
restart: unless-stopped
+2 -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');
@@ -122,11 +122,7 @@ export async function registration(
} catch (error) {
if (error) {
const errors: Record<string, string> = {}
errors['server'] = `
${API_BASE_URL}/api/auth/register
error-- ${error}
`
errors['server'] = `${API_BASE_URL}/api/auth/register error-- ${error}`
return errors;
}
throw error;