1
0
mirror of https://github.com/stonith404/pingvin-share.git synced 2024-11-05 15:30:14 +01:00

update next pwa to new version

This commit is contained in:
Elias Schneider 2022-10-11 23:10:31 +02:00
parent a40c2ded82
commit 143b4271fa
4 changed files with 1501 additions and 1469 deletions

View File

@ -1 +0,0 @@
This will be your database, it must exist because Docker can't mount the volume if it doesn't exist.

View File

@ -1,18 +1,18 @@
/** @type {import('next').NextConfig} */ /** @type {import('next').NextConfig} */
const withPWA = require("next-pwa"); const nextConfig = {
const nextConfig = withPWA({
pwa: {
dest: "public",
disable: process.env.NODE_ENV == "development"
},
publicRuntimeConfig: { publicRuntimeConfig: {
ALLOW_REGISTRATION: process.env.ALLOW_REGISTRATION, ALLOW_REGISTRATION: process.env.ALLOW_REGISTRATION,
SHOW_HOME_PAGE: process.env.SHOW_HOME_PAGE, SHOW_HOME_PAGE: process.env.SHOW_HOME_PAGE,
MAX_FILE_SIZE: process.env.MAX_FILE_SIZE, MAX_FILE_SIZE: process.env.MAX_FILE_SIZE,
BACKEND_URL: process.env.BACKEND_URL BACKEND_URL: process.env.BACKEND_URL
} }
}) }
module.exports = nextConfig const withPWA = require("next-pwa")({
dest: "public",
disable: process.env.NODE_ENV == "development"
});
module.exports = withPWA(nextConfig);

File diff suppressed because it is too large Load Diff

View File

@ -24,7 +24,7 @@
"next": "^12.3.1", "next": "^12.3.1",
"next-cookies": "^2.0.3", "next-cookies": "^2.0.3",
"next-http-proxy-middleware": "^1.2.4", "next-http-proxy-middleware": "^1.2.4",
"next-pwa": "^5.5.2", "next-pwa": "^5.6.0",
"react": "18.0.0", "react": "18.0.0",
"react-dom": "18.0.0", "react-dom": "18.0.0",
"tabler-icons-react": "^1.44.0", "tabler-icons-react": "^1.44.0",