Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Main #446

Closed
wants to merge 55 commits into from
Closed

Main #446

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
e7b1e62
fix: cors preview url (#333)
codingki Jul 18, 2024
58261f5
Merge pull request #335 from skip-mev/staging
codingki Jul 18, 2024
a2f8b85
Merge branch 'staging'
toddkao Jul 22, 2024
45216f8
Merge pull request #338 from skip-mev/bump-widget-version-2.1.0
toddkao Jul 22, 2024
086327e
Merge branch 'staging' into bump-widget
toddkao Jul 23, 2024
1bbe7aa
Merge pull request #341 from skip-mev/bump-widget
toddkao Jul 23, 2024
e706d96
Merge pull request #345 from skip-mev/staging
codingki Jul 30, 2024
4051f40
Merge pull request #346 from skip-mev/staging
toddkao Jul 30, 2024
45a637c
Merge pull request #348 from skip-mev/staging
codingki Jul 31, 2024
58c169e
Merge pull request #350 from skip-mev/staging
codingki Aug 1, 2024
4ea45f2
Merge pull request #353 from skip-mev/staging
toddkao Aug 1, 2024
7dcd578
Merge pull request #355 from skip-mev/staging
codingki Aug 2, 2024
7781ef8
Merge pull request #357 from skip-mev/staging
codingki Aug 6, 2024
4566ca0
Merge pull request #359 from skip-mev/staging
toddkao Aug 7, 2024
2c244ee
Merge pull request #361 from skip-mev/staging
codingki Aug 17, 2024
b7e8ffc
Merge pull request #367 from skip-mev/staging
codingki Aug 30, 2024
5fb515e
Merge pull request #369 from skip-mev/staging
toddkao Sep 3, 2024
c64adc2
Merge pull request #372 from skip-mev/staging
codingki Sep 12, 2024
55f7534
Merge pull request #374 from skip-mev/staging
codingki Sep 17, 2024
637c83d
Merge pull request #377 from skip-mev/staging
codingki Sep 27, 2024
c7cf2f7
Merge pull request #379 from skip-mev/staging
codingki Sep 28, 2024
7912c97
Merge pull request #382 from skip-mev/staging
codingki Oct 2, 2024
6971447
Merge pull request #384 from skip-mev/staging
toddkao Oct 25, 2024
0dd125c
Merge pull request #387 from skip-mev/staging
toddkao Oct 26, 2024
99f7969
Merge pull request #389 from skip-mev/staging
codingki Oct 28, 2024
f438196
Merge pull request #391 from skip-mev/staging
toddkao Oct 30, 2024
b8f0dc1
Merge pull request #393 from skip-mev/staging
codingki Nov 1, 2024
9f5245d
Merge pull request #395 from skip-mev/staging
codingki Nov 3, 2024
93091d2
Merge pull request #397 from skip-mev/staging
codingki Nov 6, 2024
a54b0c1
Merge pull request #399 from skip-mev/staging
codingki Nov 6, 2024
a8b0393
Merge pull request #401 from skip-mev/staging
codingki Nov 8, 2024
28d7d9a
Merge pull request #405 from skip-mev/staging
codingki Nov 8, 2024
2689e51
Merge pull request #407 from skip-mev/staging
codingki Nov 9, 2024
a4abb87
Merge pull request #409 from skip-mev/staging
codingki Nov 11, 2024
0765766
Merge pull request #411 from skip-mev/staging
toddkao Nov 11, 2024
4a1399c
Merge pull request #413 from skip-mev/staging
codingki Nov 12, 2024
8c4fcd3
Merge pull request #415 from skip-mev/staging
codingki Nov 13, 2024
c29eb3b
Merge pull request #417 from skip-mev/staging
ericHgorski Nov 15, 2024
9c42866
Merge pull request #418 from skip-mev/staging
codingki Nov 18, 2024
96704b9
Merge pull request #420 from skip-mev/staging
ericHgorski Nov 19, 2024
aa09c7d
Merge pull request #423 from skip-mev/staging
ericHgorski Nov 20, 2024
694b0f0
Merge pull request #425 from skip-mev/staging
codingki Nov 21, 2024
fa6b243
Merge pull request #427 from skip-mev/staging
codingki Nov 22, 2024
6c72d9b
Merge pull request #429 from skip-mev/staging
codingki Nov 28, 2024
6ad48c8
Merge pull request #434 from skip-mev/staging
toddkao Nov 29, 2024
ff51d65
Merge pull request #436 from skip-mev/staging
codingki Dec 3, 2024
81c80a0
Merge pull request #440 from skip-mev/staging
codingki Dec 5, 2024
13e0ebd
bump widget 3.0.22
codingki Dec 6, 2024
5cfff5f
Merge pull request #441 from skip-mev/release-bump-widget-3.0.22
codingki Dec 6, 2024
78829a2
bump widget for release
ericHgorski Dec 12, 2024
16d9c3d
Merge pull request #442 from skip-mev/eg/release-2
ericHgorski Dec 12, 2024
fab1bf4
bump widgetv2 to version 3.0.25 and update dependencies
ericHgorski Dec 17, 2024
cb51270
Merge pull request #444 from skip-mev/eg/chore-bump
ericHgorski Dec 17, 2024
cd623b2
feat(middleware): add try cloudflare to preview
codingki Dec 17, 2024
994cb73
Merge pull request #445 from skip-mev/feat(middleware)/-add-trycloudf…
codingki Dec 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion chain-registry
Submodule chain-registry updated 96 files
+1 −18 8ball/chain.json
+30 −31 _IBC/8ball-osmosis.json
+31 −0 _IBC/agoric-neutron.json
+31 −0 _IBC/archway-migaloo.json
+31 −0 _IBC/beezee-jackal.json
+31 −0 _IBC/beezee-omniflixhub.json
+31 −0 _IBC/cosmoshub-kopi.json
+1 −1 _IBC/dhealth-osmosis.json
+31 −0 _IBC/injective-kopi.json
+32 −0 _IBC/kopi-noble.json
+31 −0 _IBC/kopi-osmosis.json
+31 −0 _IBC/kopi-terra2.json
+40 −0 aaronetwork/assetlist.json
+98 −0 aaronetwork/chain.json
+ aaronetwork/images/aaron.png
+1 −13 acrechain/chain.json
+4 −4 agoric/chain.json
+53 −1 archway/assetlist.json
+4 −21 archway/chain.json
+1 −10 arkh/chain.json
+2 −2 assetmantle/assetlist.json
+11 −11 assetmantle/chain.json
+ assetmantle/images/AM_Logo.png
+0 −12 assetmantle/images/AM_Logo_Dark.svg
+ assetmantle/images/mntl.png
+25 −1 assetmantle/images/mntl.svg
+4 −8 aura/chain.json
+4 −8 aura1/chain.json
+101 −1 beezee/assetlist.json
+7 −7 celestia/chain.json
+10 −11 cheqd/chain.json
+38 −6 cheqd/versions.json
+53 −1 chihuahua/assetlist.json
+25 −4 cosmoshub/chain.json
+22 −4 dungeon/chain.json
+232 −0 elys/assetlist.json
+236 −0 elys/chain.json
+ elys/images/eden.png
+ elys/images/elys.png
+31 −0 elys/versions.json
+8 −8 gitopia/chain.json
+25 −7 haqq/chain.json
+11 −5 humans/chain.json
+1 −1 impacthub/assetlist.json
+5 −11 impacthub/chain.json
+23 −1 impacthub/versions.json
+53 −1 injective/assetlist.json
+39 −0 int3face/assetlist.json
+8 −1 int3face/chain.json
+ int3face/images/int3ton.png
+6 −6 jackal/chain.json
+53 −1 juno/assetlist.json
+507 −0 kopi/assetlist.json
+265 −0 kopi/chain.json
+4 −0 kopi/images/kopi.svg
+8 −0 kopi/images/kusd.svg
+4 −4 neutron/chain.json
+37 −0 nibiru/assetlist.json
+2 −2 nois/chain.json
+4 −4 omniflixhub/chain.json
+167 −6 osmosis/assetlist.json
+ osmosis/images/fil.axl.png
+14 −0 osmosis/images/fil.axl.svg
+ osmosis/images/ton.int3.png
+33 −0 osmosis/images/ton.int3.svg
+13 −7 persistence/assetlist.json
+7 −7 planq/chain.json
+5 −5 point/chain.json
+7 −7 pryzm/chain.json
+43 −1 pryzm/versions.json
+6 −6 realio/chain.json
+12 −0 routerchain/chain.json
+22 −1 self/chain.json
+11 −11 sge/chain.json
+8 −8 source/chain.json
+4 −4 stafihub/chain.json
+14 −6 stratos/chain.json
+1 −1 terra/assetlist.json
+52 −0 terra2/assetlist.json
+7 −7 testnets/_IBC/axelartestnet-sagatestnet.json
+6 −7 testnets/cheqdtestnet/chain.json
+38 −6 testnets/cheqdtestnet/versions.json
+34 −2 testnets/cosmosicsprovidertestnet/chain.json
+164 −0 testnets/dymensionplaygroundtestnet/assetlist.json
+71 −0 testnets/dymensionplaygroundtestnet/chain.json
+ testnets/dymensionplaygroundtestnet/images/dymension-logo.png
+12 −0 testnets/dymensionplaygroundtestnet/images/dymension-logo.svg
+15 −23 testnets/elystestnet/assetlist.json
+28 −81 testnets/elystestnet/chain.json
+36 −141 testnets/elystestnet/versions.json
+5 −3 testnets/sagatestnet/chain.json
+4 −2 testnets/sagatestnet/versions.json
+7 −7 uptick/chain.json
+38 −0 xion/chain.json
+24 −1 xpla/chain.json
+24 −1 zetachain/chain.json
30 changes: 15 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"viem": "^2.16.4",
"wagmi": "^2.5.7",
"widgetv1": "npm:@skip-go/widget@^2.5.2",
"widgetv2": "npm:@skip-go/[email protected].21",
"widgetv2": "npm:@skip-go/[email protected].25",
"zod": "^3.22.4",
"zustand": "^4.5.0"
},
Expand Down
4 changes: 3 additions & 1 deletion src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const cleanOrigin = (str: string) => {

return domain;
} catch (error) {
console.error("error", error);
return str; // Return the original string if it's not a valid URL
}
};
Expand All @@ -38,7 +39,7 @@ const isNetlifyPreview = (str: string) => {
};

const isCloudflarePreview = (str: string) => {
if (str.endsWith("pages.dev")) {
if (str.endsWith("pages.dev") || "trycloudflare.com") {
return true;
}
return false;
Expand Down Expand Up @@ -94,6 +95,7 @@ const corsMiddleware = async (request: NextRequest, response: NextResponse) => {
const allowedOrigins = await stringArraySchema.parseAsync(allowedOriginsData);
return allowedOrigins.includes(domain);
})();

// Handle preflighted requests
const isPreflight = request.method === "OPTIONS";
if (isPreflight) {
Expand Down
Loading