Skip to content

Commit

Permalink
Merge branch 'main' into feat-liquidity-incentive-solution
Browse files Browse the repository at this point in the history
  • Loading branch information
dovalid committed Jul 8, 2024
2 parents 6402c08 + 4b24470 commit 8a5bf26
Show file tree
Hide file tree
Showing 103 changed files with 2,210 additions and 618 deletions.
1 change: 1 addition & 0 deletions next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
/// <reference types="next/navigation-types/compat/navigation" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
13 changes: 12 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// @ts-check

const { BugsnagSourceMapUploaderPlugin } = require("webpack-bugsnag-plugins")
const CircularDependencyPlugin = require("circular-dependency-plugin")

/** @type {import("next").NextConfig} */
const nextConfig = {
Expand All @@ -21,8 +22,8 @@ const nextConfig = {
],
})

if (!config.plugins) config.plugins = []
if (process.env.VERCEL_ENV === "production") {
if (!config.plugins) config.plugins = []
config.plugins.push(
new BugsnagSourceMapUploaderPlugin({
apiKey: process.env.NEXT_PUBLIC_BUGSNAG_KEY ?? "",
Expand All @@ -32,6 +33,16 @@ const nextConfig = {
)
}

config.plugins.push(
new CircularDependencyPlugin({
exclude: /.next|node_modules/,
include: /src/,
// TODO: if all circular dependencies are resolved, set this argument to true
failOnError: false,
allowAsyncCycles: false,
})
)

return config
},
productionBrowserSourceMaps: true,
Expand Down
Loading

0 comments on commit 8a5bf26

Please sign in to comment.