Skip to content

Commit 2091bad

Browse files
authored
Merge pull request #165 from YAPP-Github/revert-164-fix/http-header-environment-public
2 parents 9fa34c2 + da88e13 commit 2091bad

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib/api/client.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ 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-
"X-Origin-Verify": process.env.NEXT_PUBLIC_ORIGIN_VERIFY,
72+
...(isServer() && {
73+
"X-Origin-Verify": process.env.ORIGIN_VERIFY,
74+
}),
7375
},
7476
hooks: {
7577
beforeError: [apiErrorHandler],

0 commit comments

Comments
 (0)