Skip to content

Commit d5c111c

Browse files
authored
fix: build and deployment errors (#30)
1 parent b5b5488 commit d5c111c

File tree

3 files changed

+34
-1
lines changed

3 files changed

+34
-1
lines changed

.env.example

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
NEXT_PUBLIC_BUILDER_ID=""
2+
NEXT_PUBLIC_GTM_ID="GTM-XXXXXXXX"
3+
NEXT_PUBLIC_WEBSITE_URL="https://request.network"
4+
NEXT_PUBLIC_DOCUMENTATION_URL="https://docs.request.network/building-blocks/templates/request-checkout"
5+
NEXT_PUBLIC_NPM_PACKAGE_URL="https://www.npmjs.com/package/@requestnetwork/payment-widget"
6+
NEXT_PUBLIC_DEMO_URL="https://calendly.com/mariana-rn/request-network-intro"
7+
NEXT_PUBLIC_INTEGRATION_URL="https://docs.request.network/building-blocks/templates/request-checkout"
8+
NEXT_PUBLIC_RN_API_CLIENT_ID="rn_f6mr53l2yfcdv4sych5adq7gez3avurq"
9+
NEXT_PUBLIC_REQUEST_API_URL="https://api.stage.request.network"

.github/workflows/build.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Build
2+
3+
on:
4+
workflow_dispatch:
5+
workflow_call: # Makes this workflow reusable
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Setup Node.js
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version: '22'
18+
cache: 'npm'
19+
20+
- name: Install dependencies
21+
run: npm ci
22+
23+
- name: Build
24+
run: npm run build

src/lib/validation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export const PlaygroundValidation = z.object({
44
// Payment basics
55
amountInUsd: z.string().trim()
66
.regex(/^\d+(\.\d{1,2})?$/, "Enter a valid USD amount (e.g., 10 or 10.50)")
7-
.refine((v) => parseFloat(v) > 0, "Amount must be > 0"),,
7+
.refine((v) => parseFloat(v) > 0, "Amount must be > 0"),
88
recipientWallet: z.string().min(1, "Recipient wallet is required").refine(isEthereumAddress, "Invalid Ethereum address format"),
99

1010
// Payment config

0 commit comments

Comments
 (0)