finances/next.config.mjs

20 lines
448 B
JavaScript

import withSerwistInit from '@serwist/next';
const withSerwist = withSerwistInit({
swSrc: 'src/app/service-worker.ts',
swDest: 'public/sw.js',
});
export default withSerwist({
webpack: (config) => {
config.externals.push(
'@node-rs/argon2',
'@node-rs/bcrypt',
);
return config;
},
output: 'standalone',
env: {
appVersion: process.env.npm_package_version,
},
});