-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathnext.config.js
More file actions
executable file
·34 lines (33 loc) · 1.09 KB
/
next.config.js
File metadata and controls
executable file
·34 lines (33 loc) · 1.09 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
const webpack = require('webpack');
const withTypescript = require('@zeit/next-typescript');
module.exports = withTypescript({
exportPathMap: () => ({
'/': { page: '/' },
'/technology': { page: '/technology' },
'/company': { page: '/company' },
'/token': { page: '/token' },
'/community': { page: '/community' },
'/demo': { page: '/demo' },
'/privacy': { page: '/privacy' },
'/preview': { page: '/preview', query: { q: '' } },
'/tron-dapp': { page: '/tron-dapp' },
'/edge': { page: '/edge', query: { sn: '' } },
'/qlauncher': { page: '/qlauncher', query: { sn: '', v: '' } },
}),
webpack(config) {
config.plugins.push(
new webpack.EnvironmentPlugin({
GRAPHQL_URI: process.env.GRAPHQL_URI || 'http://localhost:4000/graphql',
FACEBOOK_APP_ID: process.env.FACEBOOK_APP_ID || '',
CONTRACT_ADDRESS: process.env.CONTRACT_ADDRESS | '',
}),
);
return config;
},
publicRuntimeConfig: {
localeSubpaths:
typeof process.env.LOCALE_SUBPATHS === 'string'
? process.env.LOCALE_SUBPATHS
: 'none',
},
});