This commit is contained in:
Nikita
2024-08-27 16:31:30 +03:00
parent 139aa744b9
commit 5526df6c53

View File

@@ -1,16 +1,16 @@
// not sure if good approach // TODO: somehow there should be dynamic config for tauri/website
// one way is perhaps via env variable like below
const TAURI_DEV = false const TAURI_DEV = false
/** @type {import('next').NextConfig} */ /** @type {import('next').NextConfig} */
const nextConfig = { const nextConfig = {
// due to some jazz things
reactStrictMode: false, reactStrictMode: false,
output: TAURI_DEV ? "export" : undefined, output: TAURI_DEV ? "export" : undefined,
// typescript: { // TODO: should dist be at root or in `web`
// // TODO: hacky for tauri distDir: TAURI_DEV ? "../dist" : ".next",
// ignoreBuildErrors: TAURI_DEV ? true : false
// },
images: { images: {
// TODO: hacky for tauri // TODO: can't optimize in tauri it seems?
unoptimized: TAURI_DEV ? true : false, unoptimized: TAURI_DEV ? true : false,
remotePatterns: [ remotePatterns: [
{ {