-
Notifications
You must be signed in to change notification settings - Fork 4
/
next.config.js
29 lines (28 loc) · 961 Bytes
/
next.config.js
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
const runtimeCaching = require('next-pwa/cache')
const withPWA = require('next-pwa')({
disable: process.env.NODE_ENV === 'development',
dest: 'public',
register: true,
scope: '/',
sw: 'service-worker.js',
dest: 'public',
runtimeCaching,
})
module.exports = withPWA({
images: {
domains: ['i.ytimg.com'],
// next/image support `srcSet` using the below deviceSizes
// for more info, visit https://nextjs.org/docs/basic-features/image-optimization#device-sizes
deviceSizes: [320, 480, 640, 750, 828, 1080, 1200, 1920, 2048, 3840],
// https://nextjs.org/docs/basic-features/image-optimization#image-sizes
imageSizes: [16, 32, 48, 64, 96, 128, 256, 384],
},
i18n: {
// These are all the locales you want to support in
// your application
locales: ['en-US'],
// This is the default locale you want to be used when visiting
// a non-locale prefixed path e.g. `/hello`
defaultLocale: 'en-US',
},
})