-
-
Notifications
You must be signed in to change notification settings - Fork 26
/
next.config.js
94 lines (83 loc) · 1.88 KB
/
next.config.js
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
const withPWA = require('next-pwa')({
disable: process.env.NODE_ENV === 'development',
dest: 'public',
scope: '/',
sw: 'service-worker.js', // Service worker file name
register: true, // Register service worker
})
module.exports = withPWA({
webpack: (config) => {
// Add your custom Webpack configurations here
// Return the updated config
return config;
},
//unoptimize: true, // if you want to export
reactStrictMode: true,
env: {
dir: '/',
},
swcMinify: true,
/*
Don't remove these this uses the protocol that are need to function properly
* https://nextjs.org/docs/pages/building-your-application/optimizing/images#adding-structured-data
*/
images: {
remotePatterns: [
{
protocol: 'https',
hostname: '**.vercel.app',
pathname: '/api/**'
},
{
protocol: 'https',
hostname: '**.cloudinary.com',
pathname: '/**'
},
{
protocol: 'https',
hostname: '**.vercel.app',
pathname: '?app=muhammadfiaz-com-git-main-muhammadfiaz.vercel.app'
},
{
protocol: 'https',
hostname: '**.shields.io',
pathname: '/badge/**'
},
{
protocol: 'https',
hostname: '**.shields.io',
pathname: '/github/**'
},
{
protocol: 'https',
hostname: '**.githubusercontent.com',
pathname: '/**'
},
{
protocol: 'https',
hostname: '**.medium.com',
pathname: '/**'
},
{
protocol: 'https',
hostname: '**.dev.to',
pathname: '/**'
},
{
protocol: 'https',
hostname: 'github.com',
pathname: '/muhammad-fiaz/portfolio/**',
},
],
},
/* output: {
// Configure your export settings here,
// For example, if you want to export to the "out" directory:
directory: 'out',
},
*/
// https://nextjs.org/docs/messages/swc-disabled
experimental: {
forceSwcTransforms: true,
},
});