From 98022064e507cb5c5ace8fdf526e3adda7dad95a Mon Sep 17 00:00:00 2001 From: jejolare Date: Sat, 5 Jul 2025 18:17:12 +0700 Subject: [PATCH] remove old API_URL env --- .env.example | 1 - next.config.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.env.example b/.env.example index 6b31f4b..367024f 100644 --- a/.env.example +++ b/.env.example @@ -1,2 +1 @@ -API_URL="backend url" NEXT_PUBLIC_API_URL="backend url" \ No newline at end of file diff --git a/next.config.js b/next.config.js index b4b4a8c..91658f9 100644 --- a/next.config.js +++ b/next.config.js @@ -27,7 +27,7 @@ const nextConfig = { return [ { source: '/api/:path*', - destination: `${process.env.API_URL}/api/:path*`, + destination: `${process.env.NEXT_PUBLIC_API_URL}/api/:path*`, }, ]; },