We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eddcfef commit fd608f9Copy full SHA for fd608f9
apps/daimo-web/src/app/[...topLevelPage]/route.tsx
@@ -24,11 +24,7 @@ export async function GET(request: Request) {
24
// Rewrite /_next/... URLs to superSo/_next/...
25
const contentType = res.headers.get("content-type") || "";
26
let retBody: string | ArrayBuffer;
27
- if (contentType.includes("text/html")) {
28
- console.log(`[WEB] rewriting /_next/ URLs in ${upstreamUrl}`);
29
- const initHtml = await resBody.text();
30
- retBody = initHtml.replace(/\/_next\//g, `${superSo}/_next/`);
31
- } else if (contentType.startsWith("text/")) {
+ if (contentType.startsWith("text/")) {
32
retBody = await resBody.text();
33
} else {
34
retBody = await resBody.arrayBuffer();
0 commit comments