1
0
mirror of https://github.com/stonith404/pingvin-share.git synced 2024-06-02 22:00:14 +02:00
pingvin-share/frontend/next.config.js

22 lines
415 B
JavaScript
Raw Normal View History

2022-04-25 15:15:17 +02:00
/** @type {import('next').NextConfig} */
2022-04-28 15:02:38 +02: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",
runtimeCaching: [
{
urlPattern: /^https?.*/,
handler: 'NetworkOnly',
},
],
reloadOnOnline: false,
2022-10-11 23:10:31 +02:00
});
module.exports = withPWA({
output: "standalone", env: {
VERSION: version,
},
});