-
Notifications
You must be signed in to change notification settings - Fork 1
/
next.config.mjs
executable file
·44 lines (40 loc) · 1.14 KB
/
next.config.mjs
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
// next.config.mjs
import { setupDevPlatform } from '@cloudflare/next-on-pages/next-dev';
/**
* Use the @cloudflare/next-on-pages next-dev module to allow us to use bindings during local development
*/
if (process.env.NODE_ENV === 'development') {
await setupDevPlatform();
}
/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'i.discogs.com',
pathname: '/**', // Allows all paths on this hostname
},
{
protocol: 'https',
hostname: 'file.elezea.com',
pathname: '/**', // Allows all paths on this hostname
},
{
protocol: 'https',
hostname: 'i.scdn.co',
pathname: '/**', // Allows all paths on this hostname
},
{
protocol: 'https',
hostname: 'lastfm.freetls.fastly.net',
pathname: '/**', // Allows all paths on this hostname
},
],
// Optional: Additional image configuration settings
// deviceSizes: [320, 420, 768, 1024, 1200],
// imageSizes: [16, 32, 48, 64, 96],
// minimumCacheTTL: 60,
},
};
export default nextConfig;