mirror of
https://github.com/SrIzan10/helium.git
synced 2026-06-05 16:46:51 +00:00
71 lines
1.4 KiB
TypeScript
71 lines
1.4 KiB
TypeScript
import tailwindcss from "@tailwindcss/vite";
|
|
import { shadcn } from "@clerk/themes";
|
|
import svgLoader from "vite-svg-loader";
|
|
// https://nuxt.com/docs/api/configuration/nuxt-config
|
|
export default defineNuxtConfig({
|
|
compatibilityDate: "2025-07-15",
|
|
devtools: { enabled: true },
|
|
css: ["~/assets/css/tailwind.css"],
|
|
vite: {
|
|
plugins: [tailwindcss(), svgLoader()],
|
|
},
|
|
modules: [
|
|
"shadcn-nuxt",
|
|
"@nuxtjs/color-mode",
|
|
"@pinia/nuxt",
|
|
"nuxt-cron",
|
|
"@clerk/nuxt",
|
|
"nuxt-monaco-editor",
|
|
"@nuxtjs/i18n",
|
|
],
|
|
i18n: {
|
|
locales: [
|
|
{
|
|
code: "en",
|
|
language: "en-US",
|
|
name: "English",
|
|
file: "en.json",
|
|
},
|
|
{
|
|
code: "es",
|
|
language: "es-ES",
|
|
name: "Español",
|
|
file: "es.json",
|
|
},
|
|
],
|
|
defaultLocale: "en",
|
|
langDir: "locales",
|
|
strategy: "no_prefix",
|
|
detectBrowserLanguage: {
|
|
useCookie: true,
|
|
cookieKey: "i18n_locale",
|
|
redirectOn: "root",
|
|
},
|
|
},
|
|
colorMode: {
|
|
classSuffix: "",
|
|
},
|
|
shadcn: {
|
|
/**
|
|
* Prefix for all the imported component
|
|
*/
|
|
prefix: "",
|
|
/**
|
|
* Directory that the component lives in.
|
|
* @default "./components/ui"
|
|
*/
|
|
componentDir: "./components/ui",
|
|
},
|
|
nitro: {
|
|
experimental: {
|
|
websocket: true,
|
|
},
|
|
},
|
|
// moved clerk config to clerk-locale.client.ts
|
|
clerk: {
|
|
appearance: {
|
|
theme: shadcn,
|
|
},
|
|
},
|
|
});
|