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', });