-
Notifications
You must be signed in to change notification settings - Fork 4
/
next.config.js
68 lines (65 loc) · 1.68 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/** @type {import('next').NextConfig} */
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true',
});
const nextConfig = {
reactStrictMode: process.env.NODE_ENV != 'production',
output: 'standalone',
env: {
PORT: 8080,
IMBUE_NETWORK_WEBSOCK_ADDR: process.env.IMBUE_NETWORK_WEBSOCK_ADDR,
RELAY_CHAIN_WEBSOCK_ADDR: process.env.RELAY_CHAIN_WEBSOCK_ADDR,
GETSTREAM_API_KEY: process.env.GETSTREAM_API_KEY,
GETSTREAM_SECRET_KEY: process.env.GETSTREAM_SECRET_KEY,
GETSTREAM_APP_ID: process.env.GETSTREAM_APP_ID,
CLOUD_NAME: process.env.CLOUD_NAME,
GOOGLE_CLIENT_ID: process.env.GOOGLE_CLIENT_ID,
IMAGE_TAG: process.env.IMAGE_TAG,
NEXT_PUBLIC_BASE_URL: process.env.NEXT_PUBLIC_BASE_URL,
},
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'dublin.stream-io-cdn.com',
},
{
protocol: 'https',
hostname: 'avatars.githubusercontent.com',
},
{
hostname: '99designs-blog.imgix.net',
},
{
protocol: 'https',
hostname: 'drupal.org',
},
{
protocol: 'https',
hostname: 'images.unsplash.com',
},
{
protocol: 'https',
hostname: 'www.drupal.org',
},
{
protocol: 'https',
hostname: 'getstream.io',
},
{
protocol: 'http',
hostname: 'res.cloudinary.com',
},
{
protocol: 'https',
hostname: 'leadership.ng',
},
],
},
experimental: {
appDir: true,
},
};
// module.exports = withBundleAnalyzer({});
module.exports = nextConfig;
// module.exports = withBundleAnalyzer(nextConfig);