wip fix
This commit is contained in:
parent
0c8ed6f7d5
commit
8a74cbf127
File diff suppressed because one or more lines are too long
|
|
@ -128,8 +128,6 @@ declare global {
|
||||||
index: { head: string[]; body: string[]; render: () => string };
|
index: { head: string[]; body: string[]; render: () => string };
|
||||||
}) => Promise<Response>;
|
}) => Promise<Response>;
|
||||||
};
|
};
|
||||||
|
|
||||||
function createServer(arg: PrasiServer & { api: any; db: any }): PrasiServer;
|
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -23,13 +23,11 @@ export const codeBuild = async (id_site: any) => {
|
||||||
`\
|
`\
|
||||||
import type {} from "./typings/global";
|
import type {} from "./typings/global";
|
||||||
|
|
||||||
export const server = createServer({
|
export const server: PrasiServer = {
|
||||||
async http({ req, handle, mode, url, index, server }) {
|
async http({ req, handle, mode, url, index, server }) {
|
||||||
return await handle(req);
|
return await handle(req);
|
||||||
},
|
}
|
||||||
db,
|
};
|
||||||
api
|
|
||||||
});
|
|
||||||
`
|
`
|
||||||
);
|
);
|
||||||
const bun_types = Bun.spawn({
|
const bun_types = Bun.spawn({
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import axios from "axios";
|
||||||
return `BigInt::` + this.toString();
|
return `BigInt::` + this.toString();
|
||||||
};
|
};
|
||||||
let w = (typeof window !== "undefined" ? window : null) as any;
|
let w = (typeof window !== "undefined" ? window : null) as any;
|
||||||
let g = global as any;
|
let g = (typeof global !== "undefined" ? global : undefined) as any;
|
||||||
|
|
||||||
export const fetchViaProxy = async (
|
export const fetchViaProxy = async (
|
||||||
target_url: string,
|
target_url: string,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue