Files
cobaKeuangan/nuxt.config.ts
2025-05-28 07:23:47 +07:00

66 lines
1.3 KiB
TypeScript

// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
ssr: false,
typescript: {
shim: false
},
build: {
transpile: ["vuetify"],
},
vite: {
define: {
"process.env.DEBUG": false,
},
},
nitro: {
serveStatic: true,
},
devServerHandlers: [],
hooks: {
},
modules: [
'@vueform/nuxt',
'@sidebase/nuxt-auth'
],
// 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: 'coba-pendaftaran',
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'
},
},
compatibilityDate: "2024-10-23",
})