forked from poseidon-network/poseidon.network
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
28 lines (27 loc) · 931 Bytes
/
next.config.js
File metadata and controls
28 lines (27 loc) · 931 Bytes
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
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' },
'/preview': { page: '/preview', query: { q: '' } },
'/tron-dapp': { page: '/tron-dapp' },
}),
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',
},
});