-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnext.config.js
38 lines (36 loc) · 1.1 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
const path = require('path')
const withPlugins = require('next-compose-plugins')
const withReactSvg = require('next-react-svg')
const { PHASE_PRODUCTION_BUILD } = require('next/constants')
const nextConfig = {
env: {
GENERATE_RSS: PHASE_PRODUCTION_BUILD,
SITE_URL: PHASE_PRODUCTION_BUILD ? 'https://www.lailo.ch' : 'http://localhost:3000',
PROFILE_IMAGE: 'https://www.gravatar.com/avatar/a2d6b99998cc640643196c2ebc7e94b6',
AUTHORS_NAME: 'Lailo',
SITE_NAME: 'Lailo',
SITE_TITLE: 'Lailo',
SITE_DESCRIPTION: 'Passionate about simplicity in code and design.',
SITE_ABOUT:
"I'm Lailo, a Software Engineer from Switzerland. I share my thoughts and experiences related to code and design.",
SITE_LOCALE: 'en',
TWITTER_USERNAME: 'lailo_ch',
GITHUB_USERNAME: 'lailo',
TINY_LETTER_ID: 'laiblog',
},
webpack(config) {
config.resolve.modules.push(path.resolve(__dirname, 'src'))
return config
},
}
module.exports = withPlugins(
[
[
withReactSvg,
{
include: path.resolve(__dirname, 'src/assets/svg'),
},
],
],
nextConfig
)