88 lines
1.4 KiB
TypeScript
88 lines
1.4 KiB
TypeScript
import tailwindcss from "@tailwindcss/vite";
|
|
|
|
export default defineNuxtConfig({
|
|
app: {
|
|
head: {
|
|
meta: [
|
|
{
|
|
charset: "utf-8",
|
|
},
|
|
{
|
|
name: "viewport",
|
|
content: "width=device-width, initial-scale=1",
|
|
},
|
|
{
|
|
name: "author",
|
|
content: "Dimas Fata",
|
|
},
|
|
],
|
|
link: [
|
|
{
|
|
rel: "icon",
|
|
type: "image/x-icon",
|
|
href: "/favicon.ico",
|
|
},
|
|
],
|
|
},
|
|
},
|
|
|
|
compatibilityDate: "2026-06-03",
|
|
|
|
modules: [
|
|
"@nuxtjs/color-mode",
|
|
"@nuxtjs/i18n",
|
|
"@nuxtjs/sitemap",
|
|
"@nuxtjs/robots",
|
|
],
|
|
|
|
css: ["~/assets/css/main.css"],
|
|
|
|
vite: {
|
|
plugins: [tailwindcss()],
|
|
},
|
|
|
|
sitemap: {
|
|
autoLastmod: true,
|
|
},
|
|
|
|
robots: {
|
|
sitemap: ["https://difarft.com/sitemap.xml"],
|
|
groups: [
|
|
{
|
|
userAgent: "*",
|
|
allow: "/",
|
|
},
|
|
],
|
|
},
|
|
|
|
colorMode: {
|
|
preference: "dark",
|
|
fallback: "dark",
|
|
classSuffix: "",
|
|
},
|
|
|
|
i18n: {
|
|
strategy: "prefix_except_default",
|
|
defaultLocale: "id",
|
|
|
|
locales: [
|
|
{
|
|
code: "id",
|
|
name: "Indonesia",
|
|
file: "id.json",
|
|
},
|
|
{
|
|
code: "en",
|
|
name: "English",
|
|
file: "en.json",
|
|
},
|
|
],
|
|
|
|
langDir: "locales",
|
|
|
|
detectBrowserLanguage: false,
|
|
|
|
baseUrl: "https://difarft.com",
|
|
},
|
|
} );
|