meteo-exam/web/capacitor.config.ts

18 lines
426 B
TypeScript
Raw Permalink Normal View History

import type { CapacitorConfig } from '@capacitor/cli'
const config: CapacitorConfig = {
appId: 'fr.meteo.exam',
appName: 'Météo Exam',
webDir: 'dist',
// L'app Android pointe vers le serveur API distant ; le front est embarqué.
// Scheme HTTP : évite le mixed content (page HTTPS → API HTTP).
server: {
androidScheme: 'http',
},
android: {
allowMixedContent: true,
},
}
export default config