import type { CapacitorConfig } from '@capacitor/cli'

const config: CapacitorConfig = {
  appId: 'be.harmonics.saas',
  appName: 'harmonic-saas',
  webDir: '.playground/.output/public',
  server: {
    // Exclude API routes from being handled by the local Capacitor server
    // This ensures API calls go directly to the backend
    allowNavigation: [
      'https://harmonic-saas.vercel.app',
      'https://*.vercel.app'
    ],
    // Only handle local app routes, not API routes
    // API routes should go directly to the backend
    androidScheme: 'https'
  }
}

export default config
