You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
88 lines
1.8 KiB
88 lines
1.8 KiB
// https://nuxt.com/docs/api/configuration/nuxt-config
|
|
export default defineNuxtConfig({
|
|
devtools: { enabled: true },
|
|
runtimeConfig: {
|
|
public: {
|
|
apiBaseUrl: process.env.NUXT_API_BASE_URL,
|
|
}
|
|
},
|
|
app: {
|
|
baseURL: '/home/',
|
|
head: {
|
|
link: [
|
|
{
|
|
rel: 'stylesheet',
|
|
href: '/home/js/libs/bootstrap/bootstrap-submenu.min.css'
|
|
},
|
|
{
|
|
rel: 'stylesheet',
|
|
href: 'https://cdn.jsdelivr.net/npm/@fancyapps/ui@5.0/dist/fancybox/fancybox.css'
|
|
}
|
|
],
|
|
script: [
|
|
{
|
|
src: '/home/js/libs/jquery/jquery-3.7.0.min.js'
|
|
},
|
|
{
|
|
src: '/home/js/libs/bootstrap/bootstrap.bundle.min.js'
|
|
},
|
|
{
|
|
src: '/home/js/libs/bootstrap/bootstrap-submenu.js'
|
|
},
|
|
{
|
|
src: '/home/js/libs/swiper/swiper-bundle.min.js'
|
|
},
|
|
{
|
|
src: '/home/js/libs/fontawesome/all.min.js'
|
|
},
|
|
{
|
|
src: '/home/js/main.js'
|
|
},
|
|
{
|
|
src: 'https://cdn.jsdelivr.net/npm/@fancyapps/ui@5.0/dist/fancybox/fancybox.umd.js'
|
|
}
|
|
],
|
|
}
|
|
},
|
|
css: ['@/assets/css/main.css','@/assets/css/ckeditor.css'],
|
|
build: {
|
|
loaders: {
|
|
less: {
|
|
javascriptEnabled: true
|
|
}
|
|
}
|
|
},
|
|
modules: [
|
|
'@nuxtjs/i18n',
|
|
'@pinia/nuxt',
|
|
'@element-plus/nuxt',
|
|
],
|
|
i18n: {
|
|
// strategy: 'prefix',
|
|
langDir: 'locales',
|
|
locales: [
|
|
{
|
|
code: 'en',
|
|
iso: 'en-US',
|
|
file: 'en.js'
|
|
},
|
|
{
|
|
code: 'tw',
|
|
iso: 'zh-TW',
|
|
file: 'tw.js'
|
|
},
|
|
{
|
|
code: 'cn',
|
|
iso: 'zh-CN',
|
|
file: 'cn.js'
|
|
}
|
|
],
|
|
defaultLocale: 'tw',
|
|
detectBrowserLanguage: {
|
|
useCookie: true,
|
|
cookieKey: 'i18n_redirected',
|
|
redirectOn: 'root'
|
|
}
|
|
}
|
|
})
|