// https://nuxt.com/docs/api/configuration/nuxt-config export default defineNuxtConfig({ ssr: false, devtools: { enabled: true }, typescript: { shim: false }, build: { transpile: ["vuetify"], }, vite: { define: { "process.env.DEBUG": false, }, }, nitro: { serveStatic: true, }, devServerHandlers: [], hooks: { }, modules: [ '@vueform/nuxt', '@pinia/nuxt', '@sidebase/nuxt-auth', 'nuxt-mongoose', '@sidebase/nuxt-session', ], // auth: { // isEnabled: true, // originEnvKey: 'AUTH_ORIGIN', // baseURL: process.env.AUTH_ORIGIN || "http://localhost:3000", // provider: { // type: 'authjs', // }, // sessionRefresh: { // enablePeriodically: true, // enableOnWindowFocus: true, // }, // // disableServerSideAuth: false, // // globalAppMiddleware: { // // isEnabled: true, // // }, // }, runtimeConfig: { // auth: { // origin: process.env.NUXT_AUTH_ORIGIN || 'http://localhost:3000' // }, public: { keycloakUrl: 'https://auth.rssa.top', keycloakRealm: 'sandbox', keycloakClient: 'keuangan-davila', keycloakSecretKey: '32HslhZ8Hn97SsbxcmowhXvmNZ9cPGNE', keycloakRedirectURI: 'http://localhost:3000', // keycloakUrl: 'https://auth.rssa.top', // keycloakRealm: 'sandbox', // keycloakClient: 'keuangan-firman', // keycloakSecretKey: '32HslhZ8Hn97SsbxcmowhXvmNZ9cPGNE', // keycloakRedirectURI: 'http://localhost:3000', SIMRS_API: 'http://10.10.150.131:8084/api', // local Ahdan // SIMRS_API: 'http://10.10.123.140:8084/api' MONGODB_URI: 'mongodb://admin:*****@10.10.123.206:27017/?retryWrites=true&loadBalanced=false&serverSelectionTimeoutMS=5000&connectTimeoutMS=10000&authSource=admin&authMechanism=SCRAM-SHA-1', }, }, compatibilityDate: "2024-10-23", })