diff --git a/frontend/apps/editor2d/run.sh b/frontend/apps/editor2d/run.sh new file mode 100755 index 0000000000..e0c7173bdf --- /dev/null +++ b/frontend/apps/editor2d/run.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +# Get the directory of this script +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" + +# Go up to the root of the repository (assumes src/app/pages is always 3 levels deep) +REPO_ROOT="$(cd "${SCRIPT_DIR}/../../.." && pwd)" + +cd "${REPO_ROOT}" +echo "${REPO_ROOT}" + + +# Run the launch script +./script/desktop/launch_desktop_2d.sh \ No newline at end of file diff --git a/frontend/apps/editor2d/src/app/index.tsx b/frontend/apps/editor2d/src/app/index.tsx index 62b306511b..fc5ea025cd 100644 --- a/frontend/apps/editor2d/src/app/index.tsx +++ b/frontend/apps/editor2d/src/app/index.tsx @@ -9,7 +9,7 @@ import { Toaster } from "~/components/ui/Toast"; import { JobProvider } from "~/components/JobContext"; import "./global.css"; import { useRenderCounter } from "~/hooks/useRenderCounter"; - +import { FetchProxy as fetch } from "@storyteller/tauri-utils"; function PostHogInit() { const apiKey = import.meta.env.VITE_POSTHOG_API_KEY; posthog.init(apiKey, {