Add comprehensive .gitignore
This commit is contained in:
30
maternal-web/next.config.mjs
Normal file
30
maternal-web/next.config.mjs
Normal file
@@ -0,0 +1,30 @@
|
||||
import withPWA from 'next-pwa';
|
||||
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
reactStrictMode: true,
|
||||
images: {
|
||||
domains: ['api.maternalapp.com', 'localhost'],
|
||||
},
|
||||
};
|
||||
|
||||
const pwaConfig = withPWA({
|
||||
dest: 'public',
|
||||
register: true,
|
||||
skipWaiting: true,
|
||||
disable: process.env.NODE_ENV === 'development',
|
||||
runtimeCaching: [
|
||||
{
|
||||
urlPattern: /^https?.*/,
|
||||
handler: 'NetworkFirst',
|
||||
options: {
|
||||
cacheName: 'offlineCache',
|
||||
expiration: {
|
||||
maxEntries: 200,
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
export default pwaConfig(nextConfig);
|
||||
Reference in New Issue
Block a user