export default defineNuxtConfig({
  sourcemap: true,
  modules: ['@nuxt/ui', '@nuxt/eslint', '@pinia/nuxt', '@nuxtjs/i18n', 'nuxt-auth-utils'],
  css: ['~/assets/css/main.css'],
  runtimeConfig: {
    public: {
      clientProxyBasePath: 'NOT_SET',
      serverApiBaseUrl: 'NOT_SET',
      serverApiBasePath: 'NOT_SET',
      keycloakTokenUrl: 'http://localhost:7080/realms/legalconsenthub/protocol/openid-connect/token'
    },
    oauth: {
      keycloak: {
        clientId: 'legalconsenthub',
        clientSecret: 'mROUAVlg3c0hepNt182FJgg6dEYsomc7',
        realm: 'legalconsenthub',
        serverUrl: 'http://localhost:7080',
        redirectURL: 'http://localhost:3001/auth/keycloak',
        scope: ['openid', 'organization']
      }
    }
  },
  components: [
    {
      path: '~/components',
      pathPrefix: false
    }
  ],
  i18n: {
    defaultLocale: 'de',
    locales: [
      { code: 'en', name: 'English', file: 'en.json' },
      { code: 'de', name: 'Deutsch', file: 'de.json' }
    ]
  },
  // typescript: {
  //   typeCheck: true
  // },
  devtools: { enabled: true },
  compatibilityDate: '2024-11-01'
})
