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*`, }, ]; },