mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-29 14:56:36 +03:00
Remove references to obsolete staticHttpCache.
This commit is contained in:
parent
9600de126b
commit
3622c715ad
@ -6,8 +6,6 @@ import { stat } from "fs/promises";
|
||||
import { parentPort, threadId, workerData } from "worker_threads";
|
||||
const compiledElmPath = path.join(process.cwd(), "elm-stuff/elm-pages/elm.js");
|
||||
|
||||
global.staticHttpCache = {};
|
||||
|
||||
async function run({ mode, pathname, serverRequest, portsFilePath }) {
|
||||
console.time(`${threadId} ${pathname}`);
|
||||
try {
|
||||
|
@ -242,7 +242,6 @@ function runElmApp(
|
||||
.replace(/content\.dat\/?$/, "");
|
||||
|
||||
const modifiedRequest = { ...request, path: route };
|
||||
// console.log("StaticHttp cache keys", Object.keys(global.staticHttpCache));
|
||||
app = elmModule.Elm.Main.init({
|
||||
flags: {
|
||||
mode,
|
||||
@ -276,9 +275,6 @@ function runElmApp(
|
||||
console.log(fromElm.value);
|
||||
} else if (fromElm.tag === "ApiResponse") {
|
||||
const args = fromElm.args[0];
|
||||
if (mode === "build") {
|
||||
global.staticHttpCache = args.staticHttpCache;
|
||||
}
|
||||
|
||||
resolve({
|
||||
kind: "api-response",
|
||||
@ -288,10 +284,6 @@ function runElmApp(
|
||||
});
|
||||
} else if (fromElm.tag === "PageProgress") {
|
||||
const args = fromElm.args[0];
|
||||
if (mode === "build") {
|
||||
global.staticHttpCache = args.staticHttpCache;
|
||||
}
|
||||
|
||||
if (isBytes) {
|
||||
resolve({
|
||||
kind: "bytes",
|
||||
|
Loading…
Reference in New Issue
Block a user