mirror of
https://github.com/linsa-io/linsa.git
synced 2026-01-12 12:20:23 +01:00
25 lines
598 B
JavaScript
25 lines
598 B
JavaScript
// with this set to true, website works in both tauri (`bun app` and website with `bun web`)
|
|
// TODO: find a nicer way to do this, seems bad
|
|
const DEV = process.env.DEV
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
// due to jazz issues
|
|
reactStrictMode: false,
|
|
output: DEV ? "export" : undefined,
|
|
// TODO: should dist be at root or in `web`
|
|
distDir: DEV ? "../dist" : ".next",
|
|
images: {
|
|
// TODO: can't optimize in tauri it seems?
|
|
unoptimized: DEV ? true : false,
|
|
remotePatterns: [
|
|
{
|
|
protocol: "https",
|
|
hostname: "**"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
|
|
export default nextConfig
|