16 lines
377 B
TypeScript
16 lines
377 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const isProd = process.env.NODE_ENV === "production";
|
|
const internalHost = process.env.TAURI_DEV_HOST || "localhost";
|
|
|
|
const nextConfig: NextConfig = {
|
|
assetPrefix: isProd ? undefined : `http://${internalHost}:3000/`,
|
|
images: {
|
|
unoptimized: true,
|
|
},
|
|
output: "export",
|
|
reactStrictMode: true,
|
|
};
|
|
|
|
export default nextConfig;
|