-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnext.config.js
More file actions
31 lines (28 loc) · 919 Bytes
/
Copy pathnext.config.js
File metadata and controls
31 lines (28 loc) · 919 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
29
30
31
/** @type {import('next').NextConfig} */
// Testing Buzzer Mode means real phones on the same Wi-Fi hitting the dev
// server by LAN IP, not localhost. Next dev refuses cross-origin /_next/*
// requests unless the origin is listed here (a warning today, an error in a
// future major version).
//
// Add your machine's LAN IP via .env.local rather than editing this file:
// DEV_ORIGINS=10.107.0.98,192.168.1.42
// Hostnames only, no scheme and no port. Dev-only; production builds ignore it.
const devOrigins = [
"127.0.0.1",
"localhost",
...(process.env.DEV_ORIGINS ?? "")
.split(",")
.map((o) => o.trim())
.filter(Boolean),
];
const nextConfig = {
reactStrictMode: true,
allowedDevOrigins: devOrigins,
images: {
remotePatterns: [
{ protocol: "https", hostname: "i.scdn.co" },
{ protocol: "https", hostname: "mosaic.scdn.co" },
],
},
};
module.exports = nextConfig;