1
0
mirror of https://github.com/stonith404/pingvin-share.git synced 2024-11-19 22:00:12 +01:00
pingvin-share/frontend/next.config.js

25 lines
529 B
JavaScript
Raw Normal View History

2022-04-25 15:15:17 +02:00
/** @type {import('next').NextConfig} */
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
});
module.exports = withPWA({
output: "standalone", env: {
VERSION: version,
},
serverRuntimeConfig: {
apiURL: process.env.API_URL ?? 'http://localhost:8080',
},
});