-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
31 lines (30 loc) · 867 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
30
31
/** @type {import('next').NextConfig} */
const nextConfig = {
server: {
host: '0.0.0.0',
port: 3000,
},
images: {
domains: ['lh3.googleusercontent.com']
},
pwa: {
dest: 'public', // Directory where the service worker and manifest will be stored
register: true, // Whether to register the service worker
scope: '/', // Scope of the PWA
// You can add other PWA options here
// Example:
// runtimeCaching: [
// {
// urlPattern: /^https:\/\/api\.example\.com/,
// handler: 'StaleWhileRevalidate',
// options: {
// cacheName: 'api-cache',
// cacheableResponse: {
// statuses: [0, 200]
// }
// }
// }
// ]
},
};
module.exports = nextConfig;