-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.mjs
41 lines (39 loc) · 1000 Bytes
/
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
import withPWA from 'next-pwa'
/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
remotePatterns: [
{
protocol: 'https',
hostname: '**',
// hostname: '**.mzstatic.com',
// hostname: 'is1-ssl.mzstatic.com',
// hostname: 'is2-ssl.mzstatic.com',
// hostname: 'is3-ssl.mzstatic.com',
},
],
},
env: {
// app
// APP_NAME: process.env.APP_NAME,
// APP_BUILD: process.env.APP_BUILD,
APP_URL: process.env.APP_URL,
APP_DEBUG: process.env.APP_DEBUG,
// api
DEVELOPER_TOKEN: process.env.DEVELOPER_TOKEN,
STOREFRONT: process.env.STOREFRONT,
// musicKit
MUSICKIT_VERSION: "3",
// tests
TEST_USER_CACHE_TOKEN: process.env.TEST_USER_CACHE_TOKEN,
TEST_USER_TOKEN: process.env.TEST_USER_TOKEN,
TEST_USER_MUSIC_TOKEN: process.env.TEST_USER_MUSIC_TOKEN,
}, ...withPWA({
dest: 'public',
register: true,
skipWaiting: true,
// disable: process.env.NODE_ENV === "development"
disable: false
})
};
export default nextConfig;