diff --git a/server/routes/app.ts b/server/routes/app.ts index a9b937c66c..712adb09d6 100644 --- a/server/routes/app.ts +++ b/server/routes/app.ts @@ -10,9 +10,9 @@ import documentLoader from "@server/commands/documentLoader"; import env from "@server/env"; import { Integration } from "@server/models"; import presentEnv from "@server/presenters/env"; -import manifest from "@server/utils/manifest"; import { getTeamFromContext } from "@server/utils/passport"; import prefetchTags from "@server/utils/prefetchTags"; +import readManifestFile from "@server/utils/readManifestFile"; const isProduction = env.ENVIRONMENT === "production"; const isTest = env.ENVIRONMENT === "test"; @@ -27,7 +27,7 @@ const readIndexFile = async (): Promise => { } return (indexHtmlCache = await readFile( - path.join(__dirname, "../static/index.html") + path.join(__dirname, "../../../server/static/index.html") )); }; @@ -59,7 +59,9 @@ export const renderApp = async ( const serviceWorker = ``; const entry = "app/index.tsx"; const scriptTags = isProduction - ? `` + ? `` : `