feat: add basic webui
This commit is contained in:
33
apps/web/next.config.ts
Normal file
33
apps/web/next.config.ts
Normal file
@@ -0,0 +1,33 @@
|
||||
import { withCMS } from '@konobangu/cms/next-config';
|
||||
import { env } from '@konobangu/env';
|
||||
import { config, withAnalyzer, withSentry } from '@konobangu/next-config';
|
||||
import type { NextConfig } from 'next';
|
||||
|
||||
let nextConfig: NextConfig = { ...config };
|
||||
|
||||
nextConfig.images?.remotePatterns?.push({
|
||||
protocol: 'https',
|
||||
hostname: 'assets.basehub.com',
|
||||
});
|
||||
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
const redirects: NextConfig['redirects'] = async () => [
|
||||
{
|
||||
source: '/legal',
|
||||
destination: '/legal/privacy',
|
||||
statusCode: 301,
|
||||
},
|
||||
];
|
||||
|
||||
nextConfig.redirects = redirects;
|
||||
}
|
||||
|
||||
if (env.VERCEL) {
|
||||
nextConfig = withSentry(nextConfig);
|
||||
}
|
||||
|
||||
if (env.ANALYZE === 'true') {
|
||||
nextConfig = withAnalyzer(nextConfig);
|
||||
}
|
||||
|
||||
export default withCMS(nextConfig);
|
||||
Reference in New Issue
Block a user