Skip to content

Commit fd608f9

Browse files
committed
super.so: remove rewriting
1 parent eddcfef commit fd608f9

File tree

1 file changed

+1
-5
lines changed
  • apps/daimo-web/src/app/[...topLevelPage]

1 file changed

+1
-5
lines changed

apps/daimo-web/src/app/[...topLevelPage]/route.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,7 @@ export async function GET(request: Request) {
2424
// Rewrite /_next/... URLs to superSo/_next/...
2525
const contentType = res.headers.get("content-type") || "";
2626
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/")) {
27+
if (contentType.startsWith("text/")) {
3228
retBody = await resBody.text();
3329
} else {
3430
retBody = await resBody.arrayBuffer();

0 commit comments

Comments
 (0)