You've already forked isop-mirror
48 lines
1.1 KiB
TypeScript
48 lines
1.1 KiB
TypeScript
// https://nuxt.com/docs/api/configuration/nuxt-config
|
|
|
|
export default defineNuxtConfig({
|
|
// interné pre nuxt, nemeniť
|
|
compatibilityDate: '2025-07-15',
|
|
|
|
// debugovacie nástroje v prehliadači
|
|
devtools: { enabled: true },
|
|
|
|
// externé moduly
|
|
modules: [
|
|
'@nuxt/image', // na obrázky
|
|
'vuetify-nuxt-module', // Vuetify
|
|
'nuxt-auth-sanctum' // Laravel Sanctum auth
|
|
],
|
|
|
|
nitro: {
|
|
// statický obsah vyrenderujeme vopred
|
|
prerender: {
|
|
routes: ["/", "/info/student", "/info/company", "/register", "/about"],
|
|
},
|
|
},
|
|
|
|
sanctum: {
|
|
redirect: {
|
|
onLogin: '/dashboard',
|
|
onLogout: "/",
|
|
onAuthOnly: '/login',
|
|
keepRequestedRoute: false,
|
|
onGuestOnly: false,
|
|
},
|
|
redirectIfAuthenticated: true
|
|
},
|
|
|
|
runtimeConfig: {
|
|
public: {
|
|
sanctum: {
|
|
baseUrl: 'http://localhost:8000',
|
|
origin: 'http://localhost:3000'
|
|
} as any
|
|
}
|
|
},
|
|
|
|
typescript: {
|
|
strict: true,
|
|
typeCheck: true,
|
|
}
|
|
}); |