Use internal backend URL for frontend server runtime
This commit is contained in:
@ -1,6 +1,5 @@
|
||||
import { NextRequest, NextResponse } from 'next/server';
|
||||
|
||||
const API_URL = process.env.NEXT_PUBLIC_API_URL || 'http://localhost:3001/api';
|
||||
import { SERVER_API_URL as API_URL } from './src/lib/server-api';
|
||||
const AUTH_COOKIE = 'wa_session';
|
||||
const REFRESH_COOKIE = 'wa_refresh';
|
||||
const SESSION_REFRESH_LEEWAY_SECONDS = 60;
|
||||
|
||||
Reference in New Issue
Block a user