Skip to content

Commit 5e58f5b

Browse files
committed
chore: update wrangler configuration and optimize imports
- Changed the project name in `wrangler.jsonc` to `synapse-demo-dev` and added a production environment configuration with custom domain routing. - Refactored imports in `payments-account.tsx` and `warm-storage-service.tsx` to streamline component usage by removing unnecessary imports, enhancing code clarity. Example usage: ```ts twoslash import { Card } from '@/components/ui/card'; <Card> <CardContent>Content goes here</CardContent> </Card> ```
1 parent 6994da8 commit 5e58f5b

3 files changed

Lines changed: 21 additions & 17 deletions

File tree

examples/synapse-playground/src/components/payments-account.tsx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
1-
import {
2-
erc20,
3-
formatBalance,
4-
formatFraction,
5-
payments,
6-
} from 'iso-filecoin-synapse'
7-
import { payments as paymentsActions } from 'iso-filecoin-synapse/actions'
1+
import { erc20, formatFraction, payments } from 'iso-filecoin-synapse'
82
import { useState } from 'react'
93
import { useForm } from 'react-hook-form'
104
import { parseEther } from 'viem'
11-
import { useAccount, useConnectorClient } from 'wagmi'
5+
import { useAccount } from 'wagmi'
126
import { z } from 'zod/v4'
137
import * as Icons from '@/components/icons'
148
import {

examples/synapse-playground/src/components/warm-storage-service.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,7 @@ import { parseEther } from 'viem'
1212
import { useAccount } from 'wagmi'
1313
import { z } from 'zod/v4'
1414
import * as Icons from '@/components/icons'
15-
import {
16-
Card,
17-
CardAction,
18-
CardContent,
19-
CardHeader,
20-
CardTitle,
21-
} from '@/components/ui/card'
15+
import { Card, CardContent } from '@/components/ui/card'
2216
import { ErrorAlert, HashAlert, SuccessAlert } from './custom-ui/alerts'
2317
import { ButtonLoading } from './custom-ui/button-loading'
2418
import { Button } from './ui/button'
Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,27 @@
11
{
22
"$schema": "node_modules/wrangler/config-schema.json",
3-
"name": "synapse",
3+
"name": "synapse-demo-dev",
44
"compatibility_date": "2025-09-18",
55
"assets": {
66
"directory": "./dist",
77
"not_found_handling": "single-page-application"
88
},
99
"preview_urls": false,
10-
"workers_dev": true
10+
"workers_dev": true,
11+
"env": {
12+
"production": {
13+
"name": "synapse-demo",
14+
"compatibility_date": "2025-09-01",
15+
"assets": {
16+
"directory": "./dist",
17+
"not_found_handling": "404-page"
18+
},
19+
"routes": [
20+
{
21+
"pattern": "demo.filecoin.services",
22+
"custom_domain": true
23+
}
24+
]
25+
}
26+
}
1127
}

0 commit comments

Comments
 (0)