mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-05-04 04:33:10 +00:00
Added Codecov bundler plugin
This commit is contained in:
parent
a5a4bc4a80
commit
1832a59dad
4 changed files with 251 additions and 3 deletions
|
@ -1,8 +1,8 @@
|
|||
import { withSentryConfig } from '@sentry/nextjs';
|
||||
import type { NextConfig } from 'next';
|
||||
|
||||
import { withContentCollections } from '@content-collections/next';
|
||||
import createMDX from '@next/mdx';
|
||||
import { codecovNextJSWebpackPlugin } from '@codecov/nextjs-webpack-plugin';
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
experimental: {
|
||||
|
@ -38,6 +38,18 @@ const nextConfig: NextConfig = {
|
|||
pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'md', 'mdx'],
|
||||
compress: true,
|
||||
poweredByHeader: false,
|
||||
webpack: (config, options) => {
|
||||
config.plugins.push(
|
||||
codecovNextJSWebpackPlugin({
|
||||
enableBundleAnalysis: true,
|
||||
bundleName: 'example-nextjs-webpack-bundle',
|
||||
uploadToken: process.env.CODECOV_TOKEN,
|
||||
webpack: options.webpack,
|
||||
})
|
||||
);
|
||||
|
||||
return config;
|
||||
},
|
||||
};
|
||||
|
||||
const withMDX = createMDX({});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue