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>
This commit is contained in:
@@ -1,14 +1,28 @@
|
||||
import tailwindcss from "@tailwindcss/vite";
|
||||
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/main.css"],
|
||||
vite: {
|
||||
plugins: [tailwindcss()],
|
||||
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: process.env.NUXT_API_BASE || "http://127.0.0.1:3050",
|
||||
apiBase,
|
||||
public: {
|
||||
siteUrl: process.env.NUXT_PUBLIC_SITE_URL || "https://montech.ir",
|
||||
apiBase: process.env.NUXT_PUBLIC_API_BASE || "",
|
||||
@@ -16,10 +30,37 @@ export default defineNuxtConfig({
|
||||
},
|
||||
app: {
|
||||
head: {
|
||||
htmlAttrs: { lang: "fa", dir: "rtl" },
|
||||
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,
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user