-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathnext.config.js
More file actions
39 lines (37 loc) · 1.06 KB
/
next.config.js
File metadata and controls
39 lines (37 loc) · 1.06 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
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
images: {
loader: "custom",
imageSizes: [16, 32, 48, 64, 96, 128, 256, 384],
deviceSizes: [640, 750, 828, 1080, 1200, 1920, 2048, 3840],
nextImageExportOptimizer: {
imageFolderPath: "public/images",
exportFolderPath: "out",
quality: 75,
},
},
env: {
storePicturesInWEBP: true,
isProduction: process.env.NODE_ENV === "production",
productionDomain: process.env.PRODUCTION_DOMAIN,
// Prefix URL for generated wasm files.
wasmGenPrefix: process.env.WASM_GEN_PREFIX,
// API endpoint for generating quick share links.
// If empty, quick share link button will not appear.
shareLinkGenerator:
process.env.SHARE_LINK_GENERATOR || "api/createShareLink",
},
webpack: (config, options) => {
config.module.rules.push({
test: /\.wasm/,
type: "javascript/auto",
loader: "file-loader",
options: {
publicPath: "public",
},
});
return config;
},
};
module.exports = nextConfig;