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