25 lines
830 B
JavaScript
25 lines
830 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const isProd = process.env.NODE_ENV === 'production';
|
|
|
|
const internalHost = process.env.TAURI_DEV_HOST || 'localhost';
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
// Ensure Next.js uses SSG instead of SSR
|
|
// https://nextjs.org/docs/pages/building-your-application/deploying/static-exports
|
|
output: 'export',
|
|
// Note: This feature is required to use the Next.js Image component in SSG mode.
|
|
// See https://nextjs.org/docs/messages/export-image-api for different workarounds.
|
|
images: {
|
|
unoptimized: true,
|
|
},
|
|
devIndicators: {
|
|
appIsrStatus: false,
|
|
},
|
|
// Configure assetPrefix or else the server won't properly resolve your assets.
|
|
assetPrefix: isProd ? '' : `http://${internalHost}:3000`,
|
|
reactStrictMode: true,
|
|
};
|
|
|
|
export default nextConfig;
|