// app.config.ts — additions
plugins: [
  'expo-router',
  ['expo-image-picker', { /* ... */ }],
  ['expo-build-properties', { /* ... */ }],
  [
    '@sentry/react-native/expo',
    {
      // Sentry auth token — used during build to upload source maps.
      // Store as an EAS Secret, not in source code.
      // Generate at: sentry.io → Settings → Auth Tokens
      authToken: process.env.SENTRY_AUTH_TOKEN,
      org:       'ai-pilot-press',         // Your Sentry organisation slug
      project:   'pocketboard',             // Your Sentry project slug
    },
  ],
],

// Add the DSN to the extra field:
extra: {
  apiBaseUrl:   process.env.API_BASE_URL   ?? 'http://localhost:3000',
  easProjectId: process.env.EAS_PROJECT_ID ?? '',
  sentryDsn:    process.env.SENTRY_DSN     ?? '',
},
