Skip to content

Commit

Permalink
Merge pull request #13 from nowscott/development
Browse files Browse the repository at this point in the history
删除vercel分析
  • Loading branch information
nowscott authored Nov 28, 2024
2 parents 18b9a80 + f650f7b commit e1496c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
10 changes: 1 addition & 9 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,4 @@ module.exports = {
};
return config;
},
async rewrites() {
return [
{
source: '/_vercel/insights/script.js',
destination: '/_vercel/insights/script.js',
},
];
},
};
};
6 changes: 1 addition & 5 deletions pages/_app.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// pages/_app.js
import { Analytics } from '@vercel/analytics/react';
import '../styles/globals.css';
import { FontProvider } from '../contexts/FontContext';
import { ThemeProvider } from '../contexts/ThemeContext';
Expand All @@ -8,10 +7,7 @@ function MyApp({ Component, pageProps }) {
return (
<ThemeProvider>
<FontProvider>
<>
<Component {...pageProps} />
<Analytics />
</>
<Component {...pageProps} />
</FontProvider>
</ThemeProvider>
);
Expand Down

0 comments on commit e1496c4

Please sign in to comment.