Skip to content

Commit 0162759

Browse files
committed
chore: up
1 parent 675fc47 commit 0162759

5 files changed

Lines changed: 17 additions & 14 deletions

File tree

.env

Lines changed: 0 additions & 4 deletions
This file was deleted.

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
INDEXSUPPLY_API_KEY=
2+
VITE_BASE_URL= # e.g. https://docs.tempo.xyz
23
VITE_POSTHOG_HOST=
34
VITE_POSTHOG_KEY=
45
VITE_TEMPO_ENV= # testnet|devnet|localnet

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"unplugin-auto-import": "^20.3.0",
3535
"unplugin-icons": "^22.5.0",
3636
"viem": "^2.44.4",
37-
"vocs": "https://pkg.pr.new/wevm/vocs@442369e",
37+
"vocs": "https://pkg.pr.new/wevm/vocs@deb2c36",
3838
"wagmi": "^3.3.2",
3939
"waku": "1.0.0-alpha.1",
4040
"zod": "^4.3.5"
@@ -46,6 +46,7 @@
4646
"@types/react-dom": "^19.2.3",
4747
"@vitejs/plugin-react": "^5.1.2",
4848
"anser": "^2.3.5",
49+
"dotenv": "^17.2.3",
4950
"tsx": "^4.21.0",
5051
"typescript": "~5.9.3",
5152
"use-sync-external-store": "^1.6.0",

pnpm-lock.yaml

Lines changed: 8 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vocs.config.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import { Changelog, defineConfig, McpSource } from 'vocs/config'
22

3+
const baseUrl = process.env.VITE_BASE_URL ?? ''
4+
35
export default defineConfig({
46
changelog: Changelog.github({ prereleases: true, repo: 'tempoxyz/tempo' }),
57
checkDeadlinks: false,
@@ -17,11 +19,11 @@ export default defineConfig({
1719
McpSource.github({ repo: 'tempoxyz/tempo-ts' }),
1820
],
1921
},
20-
baseUrl: 'https://docs.tempo.xyz',
21-
ogImageUrl: (path: string) =>
22+
baseUrl: baseUrl || undefined,
23+
ogImageUrl: (path, { baseUrl } = { baseUrl: '' }) =>
2224
path === '/'
23-
? `https://docs.tempo.xyz/og-docs.png`
24-
: `https://docs.tempo.xyz/api/og?title=%title&description=%description`,
25+
? `${baseUrl}/og-docs.png`
26+
: `${baseUrl}/api/og?title=%title&description=%description`,
2527
logoUrl: {
2628
light: '/lockup-light.svg',
2729
dark: '/lockup-dark.svg',

0 commit comments

Comments
 (0)