2024-07-03 13:55:34 +00:00
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig ( {
devtools : { enabled : true } ,
2022-10-07 14:15:53 +00:00
2024-07-03 13:55:34 +00:00
app : {
header : {
link : [ { rel : 'icon' , type : 'image/svg' , href : '/images/favicon.svg' } ]
}
2022-10-07 14:15:53 +00:00
} ,
2024-07-03 13:55:34 +00:00
modules : [
"@nuxtjs/device" ,
"@pinia/nuxt"
2022-10-07 14:15:53 +00:00
] ,
2024-07-03 13:55:34 +00:00
css : [ "~/assets/css/main.scss" ] ,
ssr : false ,
2022-10-07 14:15:53 +00:00
2024-07-03 13:55:34 +00:00
devServer : {
port : Number ( process . env . PORT ) || 3000
} ,
2022-10-07 14:15:53 +00:00
2024-07-03 13:55:34 +00:00
runtimeConfig : {
public : {
baseURL : process . env . BACKEND _BASE _URL || "http://localhost:8080"
}
} ,
2022-10-07 14:15:53 +00:00
2024-07-03 13:55:34 +00:00
components : [
{
path : "~/components" ,
pathPrefix : false
}
2022-10-07 14:15:53 +00:00
] ,
2024-07-03 13:55:34 +00:00
pinia : {
autoImports : [
// automatically imports `defineStore`
"defineStore" , // import { defineStore } from 'pinia'
[ "defineStore" , "definePiniaStore" ] // import { defineStore as definePiniaStore } from 'pinia'
]
2022-10-07 14:15:53 +00:00
} ,
2024-07-03 13:55:34 +00:00
vite : {
css : {
preprocessorOptions : {
scss : {
additionalData :
'@use "@/assets/css/_color.scss" as *;@use "@/assets/css/_mixin.scss" as *;@use "@/assets/css/_font.scss" as *;@use "@/assets/css/_spacing.scss" as *;'
2022-10-07 14:15:53 +00:00
}
}
}
} ,
2024-07-03 13:55:34 +00:00
compatibilityDate : "2024-07-06"
} ) ;