Skip to content

Commit

Permalink
fix: update allowed domains
Browse files Browse the repository at this point in the history
  • Loading branch information
jkbpvsc committed Sep 26, 2023
1 parent 45879c1 commit b461caf
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions apps/marginfi-v2-ui/next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true',
})
const withBundleAnalyzer = require("@next/bundle-analyzer")({
enabled: process.env.ANALYZE === "true",
});

module.exports = withBundleAnalyzer({
/**
Expand All @@ -11,14 +11,10 @@ module.exports = withBundleAnalyzer({
publicRuntimeConfig: {
NODE_ENV: process.env.NODE_ENV,
},
transpilePackages: [
"@mrgnlabs/marginfi-client-v2",
"@mrgnlabs/mrgn-common",
"@mrgnlabs/lip-client",
],
transpilePackages: ["@mrgnlabs/marginfi-client-v2", "@mrgnlabs/mrgn-common", "@mrgnlabs/lip-client"],
reactStrictMode: true,
webpack: (config) => {
config.resolve.fallback = { fs: false, path: false, net: false, tls: false, "child_process": false, request: false };
config.resolve.fallback = { fs: false, path: false, net: false, tls: false, child_process: false, request: false };
return config;
},
images: {
Expand Down Expand Up @@ -53,6 +49,12 @@ module.exports = withBundleAnalyzer({
port: "",
pathname: "/token-metadata/**",
},
{
protocol: "https",
hostname: "storage.googleapis.com",
port: "",
pathname: "/static-marginfi/**",
},
{
protocol: "https",
hostname: "arweave.net",
Expand All @@ -64,7 +66,7 @@ module.exports = withBundleAnalyzer({
hostname: "shdw-drive.genesysgo.net",
port: "",
pathname: "/6tcnBSybPG7piEDShBcrVtYJDPSvGrDbVvXmXKpzBvWP/**",
}
},
],
},
});
Expand Down

1 comment on commit b461caf

@vercel
Copy link

@vercel vercel bot commented on b461caf Sep 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.