35 lines
753 B
TypeScript
35 lines
753 B
TypeScript
import type { NextConfig } from 'next';
|
|
import createNextIntlPlugin from 'next-intl/plugin';
|
|
|
|
const withNextIntl = createNextIntlPlugin('./locales/request.ts');
|
|
|
|
const nextConfig: NextConfig = {
|
|
transpilePackages: ['@workspace/ui', '@workspace/airo-ui'],
|
|
output: 'standalone',
|
|
typescript: {
|
|
ignoreBuildErrors: true, // 禁用 TypeScript 构建时的类型检查
|
|
},
|
|
images: {
|
|
remotePatterns: [
|
|
{
|
|
protocol: 'https',
|
|
hostname: '**.**.**',
|
|
},
|
|
{
|
|
protocol: 'https',
|
|
hostname: '**.**',
|
|
},
|
|
],
|
|
},
|
|
turbopack: {
|
|
rules: {
|
|
'./public/svg-icon/*.svg': {
|
|
loaders: ['@svgr/webpack'],
|
|
as: '*.js',
|
|
},
|
|
},
|
|
},
|
|
};
|
|
|
|
export default withNextIntl(nextConfig);
|