chore: remove next pwa (#5396)

This commit is contained in:
Prateek Shourya
2024-08-21 17:54:13 +05:30
committed by GitHub
parent b3bff4c72c
commit ae9267e0b0
3 changed files with 23 additions and 593 deletions

View File

@@ -4,10 +4,6 @@ require("dotenv").config({ path: ".env" });
// const path = require("path");
const { withSentryConfig } = require("@sentry/nextjs");
const withPWA = require("next-pwa")({
dest: "public",
disable: process.env.NODE_ENV === "development",
});
const nextConfig = {
trailingSlash: true,
@@ -133,10 +129,8 @@ const sentryConfig = {
automaticVercelMonitors: true,
};
const config = withPWA(nextConfig);
if (parseInt(process.env.SENTRY_MONITORING_ENABLED || "0", 10)) {
module.exports = withSentryConfig(config, sentryConfig);
module.exports = withSentryConfig(nextConfig, sentryConfig);
} else {
module.exports = config;
module.exports = nextConfig;
}

View File

@@ -44,7 +44,6 @@
"mobx-react": "^9.1.1",
"mobx-utils": "^6.0.8",
"next": "^14.2.3",
"next-pwa": "^5.6.0",
"next-themes": "^0.2.1",
"nprogress": "^0.2.0",
"posthog-js": "^1.131.3",

605
yarn.lock

File diff suppressed because it is too large Load Diff