Skip to content

Commit

Permalink
log proxied url
Browse files Browse the repository at this point in the history
  • Loading branch information
ruggi committed Feb 20, 2024
1 parent 45b7fe6 commit f224c3e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions utopia-remix/app/util/proxy.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ function buildProxyUrl(url: URL, path: string | null): string {

export async function proxy(req: Request, options?: { rawOutput?: boolean; path?: string }) {
const url = buildProxyUrl(new URL(req.url), options?.path ?? null)

console.log(`proxying call to ${url}`)

const response = await fetch(url, {
credentials: 'include',
method: req.method,
Expand Down

0 comments on commit f224c3e

Please sign in to comment.