refactor: restructure Next.js configuration to improve readability and maintainability
This commit is contained in:
parent
47f35c3bbe
commit
1fea33c6eb
1 changed files with 4 additions and 2 deletions
|
|
@ -20,7 +20,7 @@ async function createNextConfig(): Promise<NextConfig> {
|
|||
const buildId = `${Date.now().toString(36)}`;
|
||||
const apiVersion = `v.${buildId}`;
|
||||
|
||||
return withBundleAnalyzer({
|
||||
const configs: NextConfig = {
|
||||
compiler: {
|
||||
removeConsole: false,
|
||||
},
|
||||
|
|
@ -94,7 +94,9 @@ async function createNextConfig(): Promise<NextConfig> {
|
|||
typescript: {
|
||||
ignoreBuildErrors: true,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
return withBundleAnalyzer(configs);
|
||||
}
|
||||
|
||||
export default (async () => await createNextConfig())();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue