-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
39 lines (36 loc) · 1.32 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
// eslint-disable-next-line @typescript-eslint/no-var-requires
const withPWA = require('next-pwa')
/**
* @type {import('next').NextConfig}
*/
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
pageExtensions: ['component.tsx', 'route.ts'],
// Will only be available on the server side
serverRuntimeConfig: {},
// Will be available on both server and client
publicRuntimeConfig: {
appLang: 'FR-fr',
appColor: '#263547',
appUrl: 'https://kiriancaumes.fr',
appName: 'Kirian Caumes',
appTitle: 'Kirian Caumes - Lead Tech / Développeur Full Stack',
appDescription:
"Kirian Caumes, Lead Tech / Développeur Full Stack passionné d'informatique. Féru de Javascript, Typescript, Node, Nest, PWA, Next.js et autre !",
appComment:
'👉 If you are able to see this, feel free to check out the source code of my website: https://github.com/KirianCaumes/Kirian-Caumes-Website 👈',
/* cspell:disable-next-line */
gtmId: 'G-C3SCVG7W7N',
},
poweredByHeader: false,
}
module.exports = () => {
const plugins = [
withPWA({
disable: process.env.NODE_ENV === 'development',
dest: 'public',
}),
]
return plugins.reduce((config, plugin) => plugin(config), nextConfig)
}