Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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 apps/sendpay-example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
</head>
<body class="bg-gray-50 font-sans leading-normal tracking-normal">
<div id="root"></div>
<script type="module" src="./src/EntryClient.mjs"></script>
<script type="module" src="/src/EntryClient.mjs"></script>
</body>
</html>
6 changes: 2 additions & 4 deletions apps/sendpay-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,14 @@
},
"type": "module",
"scripts": {
"build": "npm run build:relay && npm run router:generate && npm run build:vite",
"build": "npm run build:relay && npm run router:generate && rewatch build && npm run build:vite",
"build:relay": "rescript-relay-compiler",
"rescript:build": "rewatch build",
"build:vite": "vite build --outDir dist/client",
"preview": "cross-env ENABLE_FILESERVER=true yarn start",
"router:generate": "rescript-relay-router generate",
"dev": "concurrently 'npm:dev:*'",
"dev:relay": "rescript-relay-compiler --watch",
"dev:vite": "vite",
"rescript:dev": "rewatch watch",
"dev:server": "node --env-file=../../.env.local ./api/graphql.mjs",
"dev:schema": "npx -y get-graphql-schema http://localhost:9000/api/graphql > schema.graphql",
"setup": "npm run build:relay && npm run router:generate",
Expand Down Expand Up @@ -48,4 +46,4 @@
"react-device-detect": "^2.2.3"
},
"packageManager": "yarn@4.3.1"
}
}
5 changes: 4 additions & 1 deletion apps/sendpay-example/src/components/LayoutDisplay.res
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,10 @@ let make = () => {
~url=`${sendAppUrl}/send/confirm?idType=${idType}&recipient=${recipient}&amount=0.01&sendToken=${usdcAddress(
chain,
)}`,
~target="_top",
~target=switch DeviceDetect.isMobile {
| false => "_blank"
| true => "_top"
},
~features=?switch DeviceDetect.isMobile {
| false => Some(Popup)
| true => None
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/Send.res
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ let sendAnonAuthKey = switch Vercel.env {
| Some(Production) => "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJhdXRoZW50aWNhdGVkIiwicm9sZSI6ImF1dGhlbnRpY2F0ZWQiLCJzdWIiOiI2ZmVhY2JmMC03NmU2LTQ2NDYtYjYwYy01YzBlZGM5NTI1NDgiLCJpc19hbm9ueW1vdXMiOmZhbHNlLCJpYXQiOjE3MjI5MDQ0OTgsImV4cCI6MTcyMzUwOTI5OH0.DLRpwI1-g9wMVk8jtSrjyx_vC2RjXeFbIN-qHOh7KQw"
| Some(Preview)
| Some(Development)
| None => "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJhdXRoZW50aWNhdGVkIiwicm9sZSI6ImF1dGhlbnRpY2F0ZWQiLCJzdWIiOiJlNzcwNjA1OS0wMTE3LTQyZmEtOGZjYi1hMGJhYmQxMjRlNzIiLCJpc19hbm9ueW1vdXMiOmZhbHNlLCJpYXQiOjE3MjM1Njc1MDUsImV4cCI6MTcyNDE3MjMwNX0.5jq_5gn9rWqt_eEVLqzF-512RlQBLOwNpZPiF0FCv0I"
| None => "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InVncXRvdWxleGh2YWhldnN5c3VxIiwicm9sZSI6ImFub24iLCJpYXQiOjE2OTMwOTE5MzUsImV4cCI6MjAwODY2NzkzNX0.RL8W-jw2rsDhimYl8KklF2B9bNTPQ-Kj5zZA0XlufUA"
}

module SpiceHelpers = {
Expand Down