We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9fa34c2 + da88e13 commit 2091badCopy full SHA for 2091bad
src/lib/api/client.ts
@@ -69,7 +69,9 @@ const API_BASE_URL = process.env.NEXT_PUBLIC_API_URL || "http://localhost:8080";
69
export const http = ky.create({
70
prefixUrl: API_BASE_URL,
71
headers: {
72
- "X-Origin-Verify": process.env.NEXT_PUBLIC_ORIGIN_VERIFY,
+ ...(isServer() && {
73
+ "X-Origin-Verify": process.env.ORIGIN_VERIFY,
74
+ }),
75
},
76
hooks: {
77
beforeError: [apiErrorHandler],
0 commit comments