Skip to content

Commit

Permalink
feat: update variables
Browse files Browse the repository at this point in the history
  • Loading branch information
marcolivierbouch committed Nov 26, 2024
1 parent 9a2fe73 commit dd584e5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion apps/configuration-api/.env.local.example
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
BLOB_READ_WRITE_TOKEN=""
VERCEL_CUSTOM_DOMAIN_PROXY_EDGE_CONFIG_ID=
VERCEL_TEAM_ID=
AUTH_BEARER_TOKEN=
6 changes: 5 additions & 1 deletion apps/custom-domain-proxy/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,9 @@ export async function middleware(req: Request) {
const destination = await get(req.url)
const destinationURL = new URL(destination?.toString() || '')

NextResponse.rewrite(destinationURL)
if (destinationURL) {
NextResponse.rewrite(destinationURL)
}

return new NextResponse('Not Found', { status: 404 });
}

0 comments on commit dd584e5

Please sign in to comment.