mirror of
https://github.com/NotXia/notxia.github.io.git
synced 2025-12-14 19:01:51 +01:00
Migration to Nuxt3
This commit is contained in:
48
nuxt.config.ts
Normal file
48
nuxt.config.ts
Normal file
@ -0,0 +1,48 @@
|
||||
// https://nuxt.com/docs/api/configuration/nuxt-config
|
||||
export default defineNuxtConfig({
|
||||
modules: [
|
||||
"@nuxtjs/i18n"
|
||||
],
|
||||
i18n: {
|
||||
locales: [
|
||||
{
|
||||
code: "en",
|
||||
iso: "en-US",
|
||||
name: "English",
|
||||
files: [ "en-US/general.ts", "en-US/projects.ts", "en-US/resume.ts" ]
|
||||
},
|
||||
{
|
||||
code: "it",
|
||||
iso: "it-IT",
|
||||
name: "Italiano",
|
||||
files: [ "it-IT/general.ts", "it-IT/projects.ts", "it-IT/resume.ts" ]
|
||||
},
|
||||
],
|
||||
lazy: true,
|
||||
langDir: "locales",
|
||||
defaultLocale: "en",
|
||||
strategy: "prefix",
|
||||
detectBrowserLanguage: {
|
||||
useCookie: true,
|
||||
cookieKey: "locale",
|
||||
redirectOn: "root",
|
||||
alwaysRedirect: true
|
||||
}
|
||||
},
|
||||
|
||||
components: [
|
||||
{
|
||||
path: "~/components",
|
||||
pathPrefix: false,
|
||||
},
|
||||
],
|
||||
|
||||
css: ["~/assets/css/main.css"],
|
||||
|
||||
postcss: {
|
||||
plugins: {
|
||||
tailwindcss: {},
|
||||
autoprefixer: {},
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user