diff --git a/src/Server/middleware/linkHeadersMiddleware.ts b/src/Server/middleware/linkHeadersMiddleware.ts
index 7ba8d8c1e44..d0817c7945d 100644
--- a/src/Server/middleware/linkHeadersMiddleware.ts
+++ b/src/Server/middleware/linkHeadersMiddleware.ts
@@ -1,7 +1,6 @@
import type { NextFunction } from "express"
import type { ArtsyRequest, ArtsyResponse } from "./artsyExpress"
import { CDN_URL, GEMINI_CLOUDFRONT_URL, WEBFONT_URL } from "Server/config"
-import { getWebpackEarlyHints } from "Server/getWebpackEarlyHints"
/**
* Link headers allow 103: Early Hints to be sent to the client (by Cloudflare).
@@ -13,8 +12,6 @@ export function linkHeadersMiddleware(
res: ArtsyResponse,
next: NextFunction
) {
- const { linkHeaders } = getWebpackEarlyHints()
-
if (!res.headersSent) {
res.header("Link", [
`<${CDN_URL}>; rel=preconnect; crossorigin`,
@@ -24,7 +21,6 @@ export function linkHeadersMiddleware(
`<${WEBFONT_URL}/ll-unica77_regular.woff2>; rel=preload; as=font; crossorigin`,
`<${WEBFONT_URL}/ll-unica77_medium.woff2>; rel=preload; as=font; crossorigin`,
`<${WEBFONT_URL}/ll-unica77_italic.woff2>; rel=preload; as=font; crossorigin`,
- ...linkHeaders,
])
}
diff --git a/src/System/Router/Utils/collectAssets.tsx b/src/System/Router/Utils/collectAssets.tsx
index 0e4e12d0f8e..c69494a623e 100644
--- a/src/System/Router/Utils/collectAssets.tsx
+++ b/src/System/Router/Utils/collectAssets.tsx
@@ -85,7 +85,7 @@ export const collectAssets = async ({
}
})()
- return ``
+ return ``
})
initialScripts.push(...runtimeScripts)
diff --git a/src/System/Router/renderServerApp.tsx b/src/System/Router/renderServerApp.tsx
index 9f17628c391..dac352a6c9b 100644
--- a/src/System/Router/renderServerApp.tsx
+++ b/src/System/Router/renderServerApp.tsx
@@ -5,7 +5,6 @@ import { loadAssetManifest } from "Server/manifest"
import { ENABLE_SSR_STREAMING } from "Server/config"
import { getENV } from "Utils/getENV"
import { ServerAppResults } from "System/Router/serverRouter"
-import { getWebpackEarlyHints } from "Server/getWebpackEarlyHints"
import { RenderToStreamResult } from "System/Router/Utils/renderToStream"
import { buildHtmlTemplate, HTMLProps } from "html"
@@ -48,15 +47,12 @@ export const renderServerApp = ({
const scripts = extractScriptTags?.()
- const { linkPreloadTags } = getWebpackEarlyHints()
-
const options: HTMLProps = {
cdnUrl: NODE_ENV === "production" ? (CDN_URL as string) : "",
content: {
body: html,
sharifyData: sharify.script(),
head: headTagsString,
- linkPreloadTags,
scripts,
style: styleTags,
},