This commit is contained in:
Chad Curtis committed 2025-10-07 23:41:23 +00:00
1 parent 766c51ecde
commit aa82aaf02c
15 files changed
+171 -25

No files matched your search

+3
View File
@@ -1,9 +1,11 @@
import { useMutation } from "@tanstack/react-query";
import { buildProject } from "@/lib/build";
import { useFS } from "./useFS";
import { useAppContext } from "./useAppContext";
export function useBuildProject(projectId: string) {
const { fs } = useFS();
const { config } = useAppContext();
return useMutation({
mutationFn: async () => {
@@ -11,6 +13,7 @@ export function useBuildProject(projectId: string) {
fs,
projectPath: `/projects/${projectId}`,
domParser: new DOMParser(),
esmUrl: config.esmUrl,
});
},
});