This commit is contained in:
Rizky
2024-08-08 14:45:18 +07:00
parent d6644860ee
commit c33e081841
4 changed files with 6 additions and 4 deletions
+3 -2
View File
@@ -1,6 +1,6 @@
import { $ } from "bun";
import Database from "bun:sqlite";
import { copyAsync, removeAsync } from "fs-jetpack";
import { copyAsync } from "fs-jetpack";
import mime from "mime";
import { deploy } from "utils/deploy";
import { dir } from "utils/dir";
@@ -50,6 +50,7 @@ export const _ = {
content: g.deploy.content?.site?.config?.api_url || "",
});
const gz = g.deploy.content;
if (gz) {
let layout = null as null | SinglePage;
for (const l of gz.layouts) {
@@ -80,7 +81,7 @@ export const _ = {
add({
path: "load-js",
type: "",
content: await getContent("load.js.prod", api_url),
content: await getContent("load.js.prod", `"${api_url}"`),
});
}