-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathnext.config.js
More file actions
48 lines (46 loc) · 1.3 KB
/
next.config.js
File metadata and controls
48 lines (46 loc) · 1.3 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
// const securityHeaders = [
// {
// key: 'Content-Security-Policy',
// value: `\
// default-src 'self' 'unsafe-eval';\
// font-src fonts.gstatic.com fonts.googleapis.com;\
// style-src 'self' 'unsafe-inline' fonts.googleapis.com;\
// img-src 'self' data: www.googletagmanager.com;\
// script-src 'self' 'unsafe-eval' 'unsafe-inline';\
// `
// }
// ]
module.exports = {
// async headers() {
// return [
// {
// // Apply these headers to all routes in your application.
// source: '/(.*)',
// headers: securityHeaders,
// },
// ]
// },
images: {
domains: ['media.graphcms.com', 'mobil.20k.hu', 'media.20k.hu'],
},
experimental: {
scrollRestoration: true,
},
async redirects() {
const permanents = [
['/gyik.html', '/gyik'],
['/jelentkezz.html', '/jelentkezz'],
['/koordinator.html', '/koordinator'],
['/kik-vagyunk.html', '/kik-vagyunk'],
['/tamogatas.html', '/tamogatas'],
['/suti-szabalyzat.html', '/suti-szabalyzat'],
['/adatvedelem.html', '/adatvedelem'],
['/feliratkozas-visszaigazolas.html', '/feliratkozas-visszaigazolas'],
]
return permanents.map(([source, destination]) => ({
source,
destination,
permanent: true,
}))
},
}