-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.mjs
54 lines (50 loc) · 1.5 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
45
46
47
48
49
50
51
52
53
54
import bundleAnalyzer from '@next/bundle-analyzer'
import pwa from 'next-pwa'
const withBundleAnalyzer = bundleAnalyzer({
enabled: process.env.ANALYZE === 'true',
})
const withPWA = pwa({
dest: 'public',
})
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: false,
productionBrowserSourceMaps: false,
transpilePackages: ['next-mdx-remote'],
experimental: {
nextScriptWorkers: true,
workerThreads: false,
optimizeCss: true,
swcMinify: true,
parallelServerCompiles: false,
cssChunking: 'strict',
},
env: {
REACT_APP_BACKEND_URL: process.env.REACT_APP_BACKEND_URL,
ACCUWEATHER_CURRENT_CONDITIONS: process.env.ACCUWEATHER_CURRENT_CONDITIONS,
ACCUWEATHER_API_KEY: process.env.ACCUWEATHER_API_KEY,
ACCUWEATHER_CITY_ID: process.env.ACCUWEATHER_CITY_ID,
LASTFM_API_KEY: process.env.LASTFM_API_KEY,
LASTFM_USERNAME: process.env.LASTFM_USERNAME,
SITE_URL: process.env.SITE_URL,
ATP_DID: process.env.ATP_DID,
ATP_IDENTIFIER: process.env.ATP_IDENTIFIER,
ATP_SERVICE: process.env.ATP_SERVICE,
ATP_PASSWORD: process.env.ATP_APP_PASSWORD,
},
images: {
domains: [
'localhost',
'vitals.vercel-insights.com',
'i.imgur.com',
'lastfm.freetls.fastly.net',
'strapi-cms-rw.herokuapp.com',
'i.scdn.co',
'rwietter-strapi-cms.herokuapp.com',
'res.cloudinary.com',
'picsum.photos',
],
formats: ['image/webp'],
},
}
export default withBundleAnalyzer(withPWA(nextConfig))