// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  compatibilityDate: "2025-07-15",
  devtools: { enabled: true },
  modules: [
    "@nuxt/eslint",
    "@nuxt/content",
    "@pinia/nuxt",
    "./modules/content-assets",
    "./modules/asset-generator",
    "@nuxtjs/i18n",
    "@tresjs/nuxt",
    "@nuxt/ui",
    "@nuxt/image",
  ],
  css: ["~/assets/app.css"],
  ssr: false,
  routeRules: {
    "/gallery": { ssr: true },
  },
  i18n: {
    strategy: "no_prefix",
    locales: [
      { code: "en", language: "en-US", name: "English", file: "en.json" },
      { code: "de", language: "de-DE", name: "Deutsch", file: "de.json" },
      { code: "fr", language: "fr-FR", name: "Français", file: "fr.json" },
      { code: "es", language: "es-ES", name: "Español", file: "es.json" },
      { code: "it", language: "it-IT", name: "Italiano", file: "it.json" },
      { code: "ja", language: "ja-JP", name: "日本語", file: "ja.json" },
    ],
    defaultLocale: "en",
  },
  image: {
    quality: 80,
    format: ["webp"],
  },
});
