Files
hats-app/next.config.ts
T
Ichsan Kurniawan de8dafcd92 Enable React Compiler in Next config
This change enables the React Compiler in the Next.js configuration and adds the required Babel plugin dependency. The goal is to allow the app to use React Compiler optimizations during builds and improve rendering performance.
2026-10-08 17:36:42 +07:00

31 lines
1.0 KiB
TypeScript

import type { NextConfig } from "next";
const nextConfig: NextConfig = {
/* config options here */
basePath: process.env.BASE_PATH ?? '',
env: {
'BASE_PATH': process.env.BASE_PATH ?? '',
'BASE_URL_API': process.env.BASE_URL_API,
'BASE_URL_IMG': process.env.BASE_URL_IMG,
'FIREBASE_API_KEY': process.env.FIREBASE_API_KEY,
'FIREBASE_APP_ID': process.env.FIREBASE_APP_ID,
'DEVICE_CODE': process.env.DEVICE_CODE,
},
images: {
// unoptimized: true, // <--- ADD THIS LINE
remotePatterns: [
new URL('https://36.66.3.44/**'),
new URL('https://his.nutech-integrasi.com/**'),
new URL('https://hats.hisnutech.my.id/**'),
new URL('https://api-hats.hisnutech.my.id/**'),
{ protocol: 'https', hostname: 'avatars.githubusercontent.com', pathname: '/u/**/*' },
{ protocol: 'https', hostname: 'lh3.googleusercontent.com', pathname: '/a/**/*' }
],
qualities: [50, 65, 70, 75, 80, 85, 90, 100],
},
reactCompiler: true,
reactStrictMode: false
};
export default nextConfig;