1
0
Fork 0
pingvin-share/frontend/next.config.js

26 lines
561 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,
2024-03-22 17:49:03 +01:00
pathPrefix: '/pengvin-share',
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',
},
});