2022-04-25 15:15:17 +02:00
|
|
|
/** @type {import('next').NextConfig} */
|
2022-04-28 15:02:38 +02:00
|
|
|
|
|
|
|
const withPWA = require("next-pwa");
|
|
|
|
|
|
|
|
const nextConfig = withPWA({
|
2022-04-25 15:15:17 +02:00
|
|
|
reactStrictMode: true,
|
2022-04-28 15:02:38 +02:00
|
|
|
pwa: {
|
2022-05-02 22:42:27 +02:00
|
|
|
dest: "public",
|
|
|
|
disable: process.env.NODE_ENV == "development"
|
2022-04-28 15:02:38 +02:00
|
|
|
},
|
2022-10-09 22:30:32 +02:00
|
|
|
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
|
|
|
|
}
|
2022-04-28 15:02:38 +02:00
|
|
|
})
|
2022-04-25 15:15:17 +02:00
|
|
|
|
|
|
|
module.exports = nextConfig
|