Skip to content

Commit

Permalink
next public api url
Browse files Browse the repository at this point in the history
  • Loading branch information
fpgmaas committed Jun 18, 2024
1 parent 78997cc commit 526a667
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/app/utils/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interface Match {
summary: string;
}

const apiUrl = process.env.API_URL;
const apiUrl = process.env.NEXT_PUBLIC_API_URL;

export const handleSearch = async (
query: string,
Expand Down
3 changes: 2 additions & 1 deletion frontend/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
env: {
API_URL: process.env.API_URL || "http://localhost:8000",
NEXT_PUBLIC_API_URL:
process.env.NEXT_PUBLIC_API_URL || "http://localhost:8000",
},
};

Expand Down

0 comments on commit 526a667

Please sign in to comment.