You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

15 lines
360 B

import withSerwistInit from '@serwist/next';
import { format } from 'date-fns';
const withSerwist = withSerwistInit({
additionalPrecacheEntries: [{ url: '/~offline' }],
swSrc: 'app/sw.ts',
swDest: 'public/sw.js',
});
export default withSerwist({
env: {
APP_VERSION: `Ver. ${format(new Date(), 'yy.MM.dd-HHmm')}`,
},
output: 'standalone',
});