Skip to content

Commit

Permalink
chore: synchronize workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Jan 8, 2025
1 parent 18487cb commit a23b8b7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
10 changes: 8 additions & 2 deletions src/next-edge-app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,14 @@ export function createApiHandler(options: CreateApiHandlerOptions) {
requestHeaders.set("Ory-No-Custom-Domain-Redirect", "true")

// Only effective in CI.
if (process.env.ORY_NETWORK_STAGING_RATE_LIMIT_HEADER && process.env.ORY_NETWORK_STAGING_RATE_LIMIT_KEY) {
requestHeaders.set(process.env.ORY_NETWORK_STAGING_RATE_LIMIT_HEADER, process.env.ORY_NETWORK_STAGING_RATE_LIMIT_KEY)
if (
process.env.ORY_NETWORK_STAGING_RATE_LIMIT_HEADER &&
process.env.ORY_NETWORK_STAGING_RATE_LIMIT_KEY
) {
requestHeaders.set(
process.env.ORY_NETWORK_STAGING_RATE_LIMIT_HEADER,
process.env.ORY_NETWORK_STAGING_RATE_LIMIT_KEY,
)
}

try {
Expand Down
10 changes: 8 additions & 2 deletions src/next-edge/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,14 @@ export function createApiHandler(options: CreateApiHandlerOptions) {
headers.set("Ory-No-Custom-Domain-Redirect", "true")

// Only effective in CI.
if (process.env.ORY_NETWORK_STAGING_RATE_LIMIT_HEADER && process.env.ORY_NETWORK_STAGING_RATE_LIMIT_KEY) {
headers.set(process.env.ORY_NETWORK_STAGING_RATE_LIMIT_HEADER, process.env.ORY_NETWORK_STAGING_RATE_LIMIT_KEY)
if (
process.env.ORY_NETWORK_STAGING_RATE_LIMIT_HEADER &&
process.env.ORY_NETWORK_STAGING_RATE_LIMIT_KEY
) {
headers.set(
process.env.ORY_NETWORK_STAGING_RATE_LIMIT_HEADER,
process.env.ORY_NETWORK_STAGING_RATE_LIMIT_KEY,
)
}

const response = await fetch(url, {
Expand Down

0 comments on commit a23b8b7

Please sign in to comment.