mirror of
https://github.com/linsa-io/linsa.git
synced 2026-04-24 17:28:41 +02:00
.
This commit is contained in:
@@ -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: [
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user