Skip to content

Commit

Permalink
Disable edgio and service worker
Browse files Browse the repository at this point in the history
  • Loading branch information
petrvecera committed Nov 22, 2024
1 parent 4717c43 commit 94abad0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
13 changes: 6 additions & 7 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ const { withSentryConfig } = require("@sentry/nextjs");

// This file was automatically added by edgio init.
// You should commit this file to source control.
// eslint-disable-next-line @typescript-eslint/no-var-requires
const withEdgio = require("@edgio/next/withEdgio");
// const withEdgio = require("@edgio/next/withEdgio");

/** @type {import('next').NextConfig} */
const nextConfig = {
Expand All @@ -31,9 +30,9 @@ const nextConfig = {
// },
};

const withEdgioConfig = withEdgio({
...nextConfig,
});
// const withEdgioConfig = withEdgio({
// ...nextConfig,
// });

const sentryWebpackPluginOptions = {
// Additional config options for the Sentry Webpack plugin. Keep in mind that
Expand All @@ -57,8 +56,8 @@ if (process.env.ANALYZE === "true") {
const withBundleAnalyzer = require("@next/bundle-analyzer")({
enabled: process.env.ANALYZE === "true",
});
module.exports = withBundleAnalyzer(withEdgioConfig);
module.exports = withBundleAnalyzer(nextConfig);
} else {
// Default config
module.exports = withSentryConfig(withEdgioConfig, sentryWebpackPluginOptions);
module.exports = withSentryConfig(nextConfig, sentryWebpackPluginOptions);
}
4 changes: 2 additions & 2 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import "../components/other/nprogress.css";
import ContentContainer from "../components/Content-container";
import config from "../config";
import DevSiteNotification from "../components/dev-site-notification";
import { useServiceWorker } from "@edgio/react";
// import { useServiceWorker } from "@edgio/react";
import { Metrics } from "@edgio/rum";

import "./layout.css";
Expand All @@ -38,7 +38,7 @@ export default function App(props: AppProps) {
token: "63a45f52-3972-4ed0-8867-4e762860a563", // Get your token from the Edgio Console
}).collect();

useServiceWorker({});
// useServiceWorker({});

// get system colorscheme
// const systemColorScheme = useColorScheme("dark");
Expand Down

0 comments on commit 94abad0

Please sign in to comment.