2022-04-25 08:15:17 -05:00
|
|
|
/** @type {import('next').NextConfig} */
|
2022-12-30 13:23:17 -05:00
|
|
|
const { version } = require('./package.json');
|
|
|
|
|
2022-10-11 16:10:31 -05:00
|
|
|
const withPWA = require("next-pwa")({
|
|
|
|
dest: "public",
|
2023-03-10 02:40:32 -05:00
|
|
|
disable: process.env.NODE_ENV === "development",
|
2023-03-10 03:40:09 -05:00
|
|
|
reloadOnOnline: false,
|
2023-03-10 02:40:32 -05:00
|
|
|
runtimeCaching: [
|
|
|
|
{
|
|
|
|
urlPattern: /^https?.*/,
|
|
|
|
handler: 'NetworkOnly',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
reloadOnOnline: false,
|
2022-10-11 16:10:31 -05:00
|
|
|
});
|
|
|
|
|
2022-12-30 13:23:17 -05:00
|
|
|
module.exports = withPWA({
|
|
|
|
output: "standalone", env: {
|
|
|
|
VERSION: version,
|
|
|
|
},
|
|
|
|
});
|