import type { CapacitorConfig } from "@capacitor/cli"; /** * Capacitor project config — read by the `@capacitor/cli` tooling * (`npx cap add android`, `npx cap sync`, `npx cap run android`), never * bundled into the web app. See issue #39. * * `webDir` points at Vite's build output: the packaged app ships that * folder inside the APK and serves it from the WebView's own local origin * (`https://localhost` on Android), with no dev server. Build it for the * native target with `pnpm --filter web build:capacitor`, which bakes in * the public API URL (see `.env.capacitor.example`) — a packaged bundle * can't use the relative-URL "same origin as the page" default the web * build relies on. */ const config: CapacitorConfig = { appId: "fr.kyuno.batchcooking", appName: "Batch Cooking", webDir: "dist", }; export default config;