mirror of
https://github.com/linsa-io/linsa.git
synced 2026-01-12 12:20:23 +01:00
.
This commit is contained in:
@@ -1,17 +1,17 @@
|
|||||||
// TODO: somehow there should be dynamic config for tauri/website
|
// with this set to true, website works in both tauri (`bun app` and website with `bun web`)
|
||||||
// one way is perhaps via env variable like below
|
// TODO: find a nicer way to do this, seems bad
|
||||||
const TAURI_DEV = true
|
const DEV = process.env.DEV
|
||||||
|
|
||||||
/** @type {import('next').NextConfig} */
|
/** @type {import('next').NextConfig} */
|
||||||
const nextConfig = {
|
const nextConfig = {
|
||||||
// due to some jazz things
|
// due to jazz issues
|
||||||
reactStrictMode: false,
|
reactStrictMode: false,
|
||||||
output: TAURI_DEV ? "export" : undefined,
|
output: DEV ? "export" : undefined,
|
||||||
// TODO: should dist be at root or in `web`
|
// TODO: should dist be at root or in `web`
|
||||||
distDir: TAURI_DEV ? "../dist" : ".next",
|
distDir: DEV ? "../dist" : ".next",
|
||||||
images: {
|
images: {
|
||||||
// TODO: can't optimize in tauri it seems?
|
// TODO: can't optimize in tauri it seems?
|
||||||
unoptimized: TAURI_DEV ? true : false,
|
unoptimized: DEV ? true : false,
|
||||||
remotePatterns: [
|
remotePatterns: [
|
||||||
{
|
{
|
||||||
protocol: "https",
|
protocol: "https",
|
||||||
|
|||||||
Reference in New Issue
Block a user