forked from tinacms/tina.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
35 lines (32 loc) · 929 Bytes
/
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
const withSvgr = require('next-svgr')
require('dotenv').config()
const dummyMailchimpEndpoint =
'https://theDomainHere.us18.list-manage.com/subscribe/post?u=1512315231251&id=0asd21t12e1'
module.exports = withSvgr({
env: {
MAILCHIMP_ENDPOINT:
process.env.NODE_ENV === 'production'
? process.env.MAILCHIMP_ENDPOINT
: dummyMailchimpEndpoint,
HUBSPOT_TEAMS_FORM_ID: process.env.HUBSPOT_TEAMS_FORM_ID,
HUBSPOT_PORTAL_ID: process.env.HUBSPOT_PORTAL_ID,
GTM_ID: process.env.GTM_ID,
GITHUB_CLIENT_ID: process.env.GITHUB_CLIENT_ID,
REPO_FULL_NAME: process.env.REPO_FULL_NAME,
BASE_BRANCH: process.env.BASE_BRANCH
},
exportTrailingSlash: true,
exportPathMap: async function() {
return {}
},
webpack(config) {
config.module.rules.push({
test: /\.md$/,
use: 'raw-loader',
})
config.node = {
fs: 'empty',
}
return config
},
})