fix(api): 🐛 Add debug statement to proxy

This commit is contained in:
Jesse Wierzbinski 2024-06-07 13:52:11 -10:00
parent 8f09ea4c60
commit 56e32e2c20
No known key found for this signature in database

View file

@ -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