From ba92771c407950eba37f25f3c08711602f7de2c1 Mon Sep 17 00:00:00 2001 From: Nikita Date: Tue, 27 Aug 2024 15:00:29 +0300 Subject: [PATCH] try change config --- web/next.config.mjs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/web/next.config.mjs b/web/next.config.mjs index 7b4993fe..b61fb549 100644 --- a/web/next.config.mjs +++ b/web/next.config.mjs @@ -1,7 +1,17 @@ +// not sure if good approach +const TAURI_DEV = true + /** @type {import('next').NextConfig} */ const nextConfig = { reactStrictMode: false, + output: TAURI_DEV ? "export" : undefined, + typescript: { + // TODO: hacky for tauri + ignoreBuildErrors: TAURI_DEV ? true : false + }, images: { + // TODO: hacky for tauri + unoptimized: TAURI_DEV ? true : false, remotePatterns: [ { protocol: "https",