Add FCM device registration and Gitea bug reporter
This commit is contained in:
@@ -1,12 +1,22 @@
|
||||
import type { CapacitorConfig } from '@capacitor/cli';
|
||||
|
||||
const serverUrl = process.env.METALCIRCLE_SERVER_URL || 'https://konzerte.pinguholic.de/';
|
||||
const localTest = process.env.METALCIRCLE_LOCAL_TEST === '1';
|
||||
if (!serverUrl.startsWith('https://') && !(localTest && /^http:\/\/(127\.0\.0\.1|localhost):\d+\/?$/.test(serverUrl))) {
|
||||
throw new Error('MetalCircle requires HTTPS, or explicit localhost test mode.');
|
||||
}
|
||||
|
||||
const config: CapacitorConfig = {
|
||||
appId: 'de.pinguholic.concerts',
|
||||
appName: 'MetalCircle',
|
||||
webDir: 'www',
|
||||
loggingBehavior: 'none',
|
||||
plugins: {
|
||||
PushNotifications: { presentationOptions: ['sound', 'alert'] }
|
||||
},
|
||||
server: {
|
||||
url: 'https://konzerte.pinguholic.de/',
|
||||
cleartext: false
|
||||
url: serverUrl,
|
||||
cleartext: localTest
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user