mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
fix(api): 🐛 Add debug statement to proxy
This commit is contained in:
parent
8f09ea4c60
commit
56e32e2c20
6
index.ts
6
index.ts
|
|
@ -154,6 +154,12 @@ app.all("*", async (context) => {
|
|||
.replace(config.http.base_url, config.frontend.url)
|
||||
.replace(base_url_with_http, config.frontend.url);
|
||||
|
||||
await dualLogger.log(
|
||||
LogLevel.DEBUG,
|
||||
"Server.Proxy",
|
||||
`Proxying ${replacedUrl}`,
|
||||
);
|
||||
|
||||
const proxy = await fetch(replacedUrl, {
|
||||
headers: {
|
||||
// Include for SSR
|
||||
|
|
|
|||
Loading…
Reference in a new issue