mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-10-28 10:33:39 +00:00
16 lines
398 B
TypeScript
16 lines
398 B
TypeScript
import path from "node:path";
|
|
import process from "node:process";
|
|
import url from "node:url";
|
|
|
|
export const bundlePath = __dirname;
|
|
|
|
export const publicPath = import.meta.env.DEV
|
|
? path.join(bundlePath, "../public")
|
|
: bundlePath;
|
|
|
|
export const bundleUrl = import.meta.env.DEV
|
|
? process.env.VITE_DEV_SERVER_URL
|
|
: url.pathToFileURL(__dirname).href + "/";
|
|
|
|
export const publicUrl = bundleUrl;
|