fix prod
This commit is contained in:
parent
7354176c48
commit
952722a1fe
|
|
@ -82,7 +82,7 @@ export const createServer = async () => {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const found = cache.static[url.pathname];
|
const found = cache.static[url.pathname];
|
||||||
if (found || g.mode === "prod") {
|
if (found && g.mode === "prod") {
|
||||||
const res = new Response(found.content);
|
const res = new Response(found.content);
|
||||||
res.headers.set("Content-Type", found.type);
|
res.headers.set("Content-Type", found.type);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue