1
0
mirror of https://github.com/stonith404/pingvin-share.git synced 2024-07-02 07:20:38 +02:00
pingvin-share/frontend/next.config.js
2022-10-16 20:21:35 +02:00

19 lines
436 B
JavaScript

/** @type {import('next').NextConfig} */
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,
BACKEND_URL: process.env.BACKEND_URL,
}
}
const withPWA = require("next-pwa")({
dest: "public",
disable: process.env.NODE_ENV == "development"
});
module.exports = withPWA(nextConfig);