Skip to content

Commit

Permalink
Merge pull request #4558 from jbx-protocol/dev
Browse files Browse the repository at this point in the history
release: 2024-12-7
  • Loading branch information
aeolianeth authored Dec 8, 2024
2 parents aa5541b + cc6f08b commit 15a2452
Show file tree
Hide file tree
Showing 247 changed files with 6,898 additions and 3,237 deletions.
56 changes: 50 additions & 6 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ const INFURA_IPFS_URLS = [
]

const SCRIPT_SRC = [
'https://*.juicebox.money',
'https://static.hotjar.com',
'https://script.hotjar.com',
'https://cdn.usefathom.com',
'https://juicebox.money', // Trusted host
'https://*.juicebox.money', // Trusted subdomains
'https://static.hotjar.com', // Hotjar analytics
'https://script.hotjar.com', // Hotjar analytics
'https://cdn.usefathom.com', // Fathom analytics
// Not working as unsafe-eval is required for metamask
// `'sha256-kZ9E6/oLrki51Yx03/BugStfFrPlm8hjaFbaokympXo='`, // hotjar
`'unsafe-eval'`, // hotjar
Expand Down Expand Up @@ -70,7 +71,9 @@ const CONNECT_SRC = [
'https://*.supabase.co',
'https://api.ensideas.com',
'https://cloudflare-eth.com',
'https://rpc.sepolia.org/'
'https://rpc.sepolia.org/',
'https://sepolia-rollup.arbitrum.io/rpc',
'https://sepolia.optimism.io',
]

const FRAME_ANCESTORS = [
Expand Down Expand Up @@ -125,6 +128,20 @@ const SECURITY_HEADERS = [
const nextConfig = removeImports({
experimental: {
esmExternals: true,
optimizePackageImports: [
'juice-sdk-core',
'juice-sdk-react',
'ethers',
'ethers/lib/utils',
'@ethersproject/constants',
'@ethersproject/bignumber',
'@ethersproject',
'viem',
'viem/chains',
'wagmi',
'@wagmi/core',
'@heroicons/react'
],
},
staticPageGenerationTimeout: 90,
webpack: config => {
Expand Down Expand Up @@ -178,7 +195,34 @@ const nextConfig = removeImports({
...SECURITY_HEADERS,
],
},
];
{
source: '/(.*)',
headers: [
{
key: 'x-vercel-country',
value: '', // Allow this header to pass through
},
],
},
{
source: '/(.*)',
headers: [
{
key: 'X-Vercel-IP-Country-Region',
value: '', // Allow this header to pass through
},
],
},
{
source: '/(.*)',
headers: [
{
key: 'X-Vercel-IP-City',
value: '', // Allow this header to pass through
},
],
},
]
},
images: {
remotePatterns: [
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@
"@uniswap/sdk": "3.0.3",
"@uniswap/sdk-core": "3.0.1",
"@uniswap/v3-sdk": "3.8.2",
"@walletconnect/web3-provider": "^1.8.0",
"@web3-onboard/coinbase": "^2.4.1",
"@web3-onboard/core": "^2.22.2",
"@web3-onboard/gnosis": "^2.3.2",
Expand All @@ -107,8 +106,8 @@
"graphql": "^16.8.1",
"he": "^1.2.0",
"jsonwebtoken": "^9.0.0",
"juice-sdk-core": "^11.0.0-alpha",
"juice-sdk-react": "^11.0.0-alpha",
"juice-sdk-core": "^11.5.0-alpha",
"juice-sdk-react": "^11.6.0-alpha",
"juicebox-metadata-helper": "0.1.7",
"less": "4.1.2",
"lodash": "^4.17.21",
Expand Down
Loading

0 comments on commit 15a2452

Please sign in to comment.