Skip to content

Commit

Permalink
refactor: use @antv/g6 instead of cytoscape
Browse files Browse the repository at this point in the history
  • Loading branch information
yvonneyx authored and M1n9X committed Aug 28, 2024
1 parent 2b79d72 commit 3473504
Show file tree
Hide file tree
Showing 7 changed files with 22,744 additions and 4 deletions.
15 changes: 14 additions & 1 deletion web/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,16 @@ const nextConfig = {
GET_USER_URL: process.env.GET_USER_URL,
LOGIN_URL: process.env.LOGIN_URL,
LOGOUT_URL: process.env.LOGOUT_URL,
GITHUB_CLIENT_ID: process.env.GITHUB_CLIENT_ID,
GOOGLE_CLIENT_ID: process.env.GOOGLE_CLIENT_ID,
GET_USER_URL: process.env.GET_USER_URL,
LOGIN_URL: process.env.LOGIN_URL,
LOGOUT_URL: process.env.LOGOUT_URL,
},
trailingSlash: true,
images: { unoptimized: true },
skipTrailingSlashRedirect: true,
skipTrailingSlashRedirect: true,
webpack: (config, { isServer }) => {
config.resolve.fallback = { fs: false };
if (!isServer) {
Expand All @@ -46,7 +52,14 @@ const nextConfig = {
}
};

const withTM = require('next-transpile-modules')(['@berryv/g2-react','@antv/g2','react-syntax-highlighter', '@antv/gpt-vis']);
const withTM = require("next-transpile-modules")([
"@berryv/g2-react",
"@antv/g2",
"react-syntax-highlighter",
"@antv/g6",
"@antv/graphin",
'@antv/gpt-vis',
]);

module.exports = withTM({
...nextConfig,
Expand Down
Loading

0 comments on commit 3473504

Please sign in to comment.