diff --git a/app/lib/constants.ts b/app/lib/constants.ts index 5f43041..b253c89 100644 --- a/app/lib/constants.ts +++ b/app/lib/constants.ts @@ -1,2 +1,2 @@ export const NEXT_PUBLIC_API_URL = - process.env.API_URL || "http://localhost:3001"; + process.env.NEXT_PUBLIC_API_URL || "http://localhost:3001"; diff --git a/app/next.config.js b/app/next.config.js index a35bfad..efaef5f 100644 --- a/app/next.config.js +++ b/app/next.config.js @@ -1,6 +1,9 @@ /** @type {import('next').NextConfig} */ const nextConfig = { output: "export", + env: { + NEXT_PUBLIC_API_URL: process.env.NEXT_PUBLIC_API_URL, + }, }; module.exports = nextConfig;