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

19 lines
469 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
2022-10-11 23:10:31 +02:00
const nextConfig = {
publicRuntimeConfig: {
ALLOW_REGISTRATION: process.env.ALLOW_REGISTRATION,
SHOW_HOME_PAGE: process.env.SHOW_HOME_PAGE,
MAX_FILE_SIZE: process.env.MAX_FILE_SIZE,
2022-10-18 14:27:14 +02:00
ALLOW_UNAUTHENTICATED_SHARES: process.env.ALLOW_UNAUTHENTICATED_SHARES
}
2022-10-11 23:10:31 +02:00
}
const withPWA = require("next-pwa")({
dest: "public",
disable: process.env.NODE_ENV == "development"
});
2022-04-25 15:15:17 +02:00
2022-10-11 23:10:31 +02:00
module.exports = withPWA(nextConfig);