chore: remove next pwa (#5396)
This commit is contained in:
parent
b3bff4c72c
commit
ae9267e0b0
3 changed files with 23 additions and 593 deletions
|
|
@ -4,10 +4,6 @@ require("dotenv").config({ path: ".env" });
|
||||||
// const path = require("path");
|
// const path = require("path");
|
||||||
|
|
||||||
const { withSentryConfig } = require("@sentry/nextjs");
|
const { withSentryConfig } = require("@sentry/nextjs");
|
||||||
const withPWA = require("next-pwa")({
|
|
||||||
dest: "public",
|
|
||||||
disable: process.env.NODE_ENV === "development",
|
|
||||||
});
|
|
||||||
|
|
||||||
const nextConfig = {
|
const nextConfig = {
|
||||||
trailingSlash: true,
|
trailingSlash: true,
|
||||||
|
|
@ -133,10 +129,8 @@ const sentryConfig = {
|
||||||
automaticVercelMonitors: true,
|
automaticVercelMonitors: true,
|
||||||
};
|
};
|
||||||
|
|
||||||
const config = withPWA(nextConfig);
|
|
||||||
|
|
||||||
if (parseInt(process.env.SENTRY_MONITORING_ENABLED || "0", 10)) {
|
if (parseInt(process.env.SENTRY_MONITORING_ENABLED || "0", 10)) {
|
||||||
module.exports = withSentryConfig(config, sentryConfig);
|
module.exports = withSentryConfig(nextConfig, sentryConfig);
|
||||||
} else {
|
} else {
|
||||||
module.exports = config;
|
module.exports = nextConfig;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,6 @@
|
||||||
"mobx-react": "^9.1.1",
|
"mobx-react": "^9.1.1",
|
||||||
"mobx-utils": "^6.0.8",
|
"mobx-utils": "^6.0.8",
|
||||||
"next": "^14.2.3",
|
"next": "^14.2.3",
|
||||||
"next-pwa": "^5.6.0",
|
|
||||||
"next-themes": "^0.2.1",
|
"next-themes": "^0.2.1",
|
||||||
"nprogress": "^0.2.0",
|
"nprogress": "^0.2.0",
|
||||||
"posthog-js": "^1.131.3",
|
"posthog-js": "^1.131.3",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue