Files
static-front/next.config.js
T
Hamed 4cd34106b0
Build & Deploy (develop) / build-and-deploy (push) Successful in 2m23s
refactor: migrate project to TypeScript and translate comments to English
2026-09-14 13:27:17 +02:00

25 lines
507 B
JavaScript

const basePath = process.env.NEXT_PUBLIC_BASE_PATH || '';
// Next.js 14 loads its configuration as JavaScript.
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
transpilePackages: [
'antd',
'@ant-design/icons',
'rc-util',
'rc-pagination',
'rc-picker'
],
output: 'standalone',
trailingSlash: true,
basePath: basePath || undefined,
assetPrefix: basePath || undefined,
};
module.exports = nextConfig;