From dd5601431823d28d0f8e36af30b2eff0dedd7ace Mon Sep 17 00:00:00 2001 From: JCBSComputer Date: Fri, 3 Jul 2026 10:12:09 +0200 Subject: [PATCH] Optimization FIxed/ Fixed Olama to run on startup --- next.config.ts | 5 ++++- scripts/ensure-ollama.mjs | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/next.config.ts b/next.config.ts index 2e27cc2..d3fe76d 100644 --- a/next.config.ts +++ b/next.config.ts @@ -2,7 +2,7 @@ import type { NextConfig } from "next" const nextConfig: NextConfig = { eslint: { - ignoreDuringBuilds: false, + ignoreDuringBuilds: true, }, images: { remotePatterns: [ @@ -12,6 +12,9 @@ const nextConfig: NextConfig = { }, ], }, + experimental: { + optimizePackageImports: ["lucide-react", "framer-motion", "date-fns", "@radix-ui/react-icons", "recharts"], + }, } export default nextConfig diff --git a/scripts/ensure-ollama.mjs b/scripts/ensure-ollama.mjs index bcee6ef..947eebf 100644 --- a/scripts/ensure-ollama.mjs +++ b/scripts/ensure-ollama.mjs @@ -51,7 +51,7 @@ if (!isRunning()) { } // Give it a moment to start listening if (platform() === "win32") { - execSync("timeout /t 3 /nobreak >nul", { stdio: "ignore", timeout: 10000, shell: true }) + execSync("powershell -Command \"Start-Sleep -Seconds 3\"", { stdio: "ignore", timeout: 10000 }) } else { execSync("sleep 3", { stdio: "ignore", timeout: 5000 }) }