-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnext.config.js
More file actions
49 lines (47 loc) · 1.2 KB
/
next.config.js
File metadata and controls
49 lines (47 loc) · 1.2 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/** @type {import('next').NextConfig} */
const basePath = process.env.NEXT_PUBLIC_BASE_PATH || '';
const nextConfig = {
generateBuildId: async () => {
return 'build-id'
},
reactStrictMode: true,
output: process.env.BUILD_STANDALONE === "true" ? "standalone" : undefined,
// basePath is set at build time from NEXT_PUBLIC_BASE_PATH env variable
// This allows building separate images for root (/) and subdirectory (/explorer) deployments
basePath: basePath,
// assetPrefix must match basePath for proper asset serving
assetPrefix: basePath,
publicRuntimeConfig: {
basePath: basePath,
},
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'images.hive.blog',
pathname: '**',
},
{
protocol: 'https',
hostname: 'files.steempeak.com',
pathname: '**',
},
{
protocol: 'https',
hostname: 'files.peakd.com',
pathname: '**',
},
{
protocol: 'https',
hostname: 'images.ecency.com',
pathname: '**',
},
{
protocol: 'https',
hostname: 'images.leofinance.io',
pathname: '**',
},
],
},
};
module.exports = nextConfig;