-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathnext.config.ts
More file actions
62 lines (59 loc) · 1.4 KB
/
next.config.ts
File metadata and controls
62 lines (59 loc) · 1.4 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import MiniCssExtractPlugin from 'mini-css-extract-plugin';
import type { NextConfig } from 'next';
/** @type {import('next').NextConfig} */
const nextConfig: NextConfig = {
env: {
NEXT_PUBLIC_API_BASE_URL: process.env.NEXT_PUBLIC_API_BASE_URL,
NEXT_PUBLIC_API_AUTH_URL: process.env.NEXT_PUBLIC_API_AUTH_URL,
},
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'res.cloudinary.com',
pathname: '**',
},
{
protocol: 'https',
hostname: 'media.licdn.com',
pathname: '**',
},
{
protocol: 'https',
hostname: 'via.placeholder.com',
pathname: '**',
},
{
protocol: 'https',
hostname: 'images.unsplash.com',
pathname: '**',
},
{
protocol: 'https',
hostname: 'res.cloudinary.com',
pathname: '**',
},
{
protocol: 'https',
hostname: 'randomuser.me',
pathname: '**',
},
],
},
sassOptions: {
includePaths: ['./src/styles'],
},
webpack(config, { isServer }) {
if (!isServer) {
config.plugins.push(
new MiniCssExtractPlugin({
filename: 'static/css/[name].[contenthash].css',
chunkFilename: 'static/css/[id].[contenthash].css',
})
);
}
return config;
},
};
console.log('✅ next.config.ts loaded!');
export default nextConfig;