Files
MahdiandCursor b0088c35d1 Replace the landing with the artifact design and rebuild the admin in Ant Design.
Adds consultation leads, section editors, and the one-time content reset for this release.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-01 20:36:06 +03:30

67 lines
2.1 KiB
TypeScript

import { fileURLToPath } from "node:url";
const apiBase = process.env.NUXT_API_BASE || "http://127.0.0.1:3050";
const themeBootScript =
"(function(){try{var t=localStorage.getItem('montech_theme');" +
"var d=t==='dark'||(!t&&window.matchMedia&&window.matchMedia('(prefers-color-scheme: dark)').matches);" +
"document.documentElement.classList.toggle('dark',d)}catch(e){}})()";
export default defineNuxtConfig({
compatibilityDate: "2025-01-01",
devtools: { enabled: false },
css: ["~/assets/css/fonts.css", "~/assets/css/main.css"],
components: [{ path: "~/components", pathPrefix: false }],
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
},
alias: {
"@montech/shared": fileURLToPath(new URL("../../packages/shared/src/index.ts", import.meta.url)),
},
runtimeConfig: {
apiBase,
public: {
siteUrl: process.env.NUXT_PUBLIC_SITE_URL || "https://montech.ir",
apiBase: process.env.NUXT_PUBLIC_API_BASE || "",
},
},
app: {
head: {
htmlAttrs: { lang: "fa", dir: "rtl", class: "scroll-smooth" },
bodyAttrs: {
class: "selection:bg-brand-600 selection:text-white antialiased hero-mesh dark:bg-[#070d19] dark:text-slate-100",
},
charset: "utf-8",
viewport: "width=device-width, initial-scale=1.0",
title: "منتک | هوش‌افزار منظر - پلتفرم راهکارهای نرم‌افزاری و هوش مصنوعی",
meta: [
{ name: "theme-color", content: "#0062f5" },
{ name: "format-detection", content: "telephone=no" },
],
link: [{ rel: "icon", type: "image/svg+xml", href: "/brand/logo.svg" }],
script: [{ innerHTML: themeBootScript, tagPosition: "head" }],
},
},
routeRules: {
"/": { swr: 30 },
"/blog": { swr: 120 },
"/blog/**": { swr: 120 },
"/gallery": { swr: 120 },
"/sitemap.xml": { swr: 3600 },
"/robots.txt": { swr: 86400 },
},
nitro: {
preset: "node-server",
compressPublicAssets: true,
devProxy: {
"/api": { target: `${apiBase}/api`, changeOrigin: true },
},
},
experimental: {
payloadExtraction: false,
},
});