Skip to content

Commit 9fa34c2

Browse files
authored
Merge pull request #164 from YAPP-Github/fix/http-header-environment-public
2 parents f1c0c24 + c505474 commit 9fa34c2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/lib/api/client.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,7 @@ const API_BASE_URL = process.env.NEXT_PUBLIC_API_URL || "http://localhost:8080";
6969
export const http = ky.create({
7070
prefixUrl: API_BASE_URL,
7171
headers: {
72-
...(isServer() && {
73-
"X-Origin-Verify": process.env.ORIGIN_VERIFY,
74-
}),
72+
"X-Origin-Verify": process.env.NEXT_PUBLIC_ORIGIN_VERIFY,
7573
},
7674
hooks: {
7775
beforeError: [apiErrorHandler],

0 commit comments

Comments
 (0)