- Optimize dashboard Vite output for mobile and include vite/client types in app typecheck - Add PWA support with manifest, service worker, icons, and client registration hooks - Add a mobile workspace package with Capacitor config and live-reload scripts for local development - Add a dedicated GitHub Actions mobile pipeline and update mobile workflow documentation - Add dashboard tests for build output, mobile scripts, and PWA asset coverage
18 lines
438 B
TypeScript
18 lines
438 B
TypeScript
import type { CapacitorConfig } from "@capacitor/cli";
|
|
|
|
const liveReloadEnabled = process.env.FUSION_LIVE_RELOAD === "true";
|
|
|
|
const config: CapacitorConfig = {
|
|
appId: "com.fusion.mobile",
|
|
appName: "Fusion",
|
|
webDir: "../dashboard/dist/client",
|
|
server: {
|
|
url: liveReloadEnabled
|
|
? process.env.FUSION_SERVER_URL || "http://localhost:5173"
|
|
: undefined,
|
|
cleartext: liveReloadEnabled,
|
|
},
|
|
};
|
|
|
|
export default config;
|