forked from siddharthamaity/nextjs-15-starter-shadcn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.ts
31 lines (27 loc) · 845 Bytes
/
next.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import type { NextConfig } from 'next';
import initializeBundleAnalyzer from '@next/bundle-analyzer';
// https://www.npmjs.com/package/@next/bundle-analyzer
const withBundleAnalyzer = initializeBundleAnalyzer({
enabled: process.env.BUNDLE_ANALYZER_ENABLED === 'true'
});
// https://nextjs.org/docs/pages/api-reference/next-config-js
const nextConfig: NextConfig = {
output: 'standalone',
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'avatars.githubusercontent.com'
},
{
protocol: 'https',
hostname: 'images.unsplash.com'
},
{
protocol: 'https',
hostname: 'ui.shadcn.com'
}
]
}
};
export default withBundleAnalyzer(nextConfig);