49 lines
1 KiB
TypeScript
49 lines
1 KiB
TypeScript
// https://nuxt.com/docs/api/configuration/nuxt-config
|
|
export default defineNuxtConfig({
|
|
modules: ["@nuxt/eslint", "@nuxt/ui", "@nuxtjs/i18n", "@nuxt/a11y", "@nuxt/hints"],
|
|
|
|
devtools: {
|
|
enabled: true,
|
|
|
|
timeline: {
|
|
enabled: true,
|
|
},
|
|
},
|
|
|
|
css: ["~/assets/css/main.css"],
|
|
|
|
runtimeConfig: {
|
|
public: {
|
|
apiBaseUrl: process.env.NUXT_PUBLIC_API_BASE_URL ?? "http://localhost:3001",
|
|
},
|
|
},
|
|
|
|
compatibilityDate: "2025-01-15",
|
|
|
|
eslint: {
|
|
config: {
|
|
stylistic: {
|
|
quotes: "double",
|
|
braceStyle: "1tbs",
|
|
},
|
|
},
|
|
},
|
|
|
|
i18n: {
|
|
baseUrl: process.env.NUXT_PUBLIC_SITE_URL ?? "http://localhost:3000",
|
|
locales: [
|
|
{ code: "en", language: "en", name: "English", file: "en.json" },
|
|
{ code: "fr", language: "fr", name: "Français", file: "fr.json" },
|
|
],
|
|
defaultLocale: "en",
|
|
strategy: "no_prefix",
|
|
langDir: "locales",
|
|
detectBrowserLanguage: {
|
|
useCookie: true,
|
|
cookieKey: "i18n_redirected",
|
|
redirectOn: "root",
|
|
},
|
|
vueI18n: "i18n.config.ts",
|
|
},
|
|
});
|