Compare commits

..

2 Commits

Author SHA1 Message Date
211e441dd4 Update appUrl import path to @because/toes/tools 2026-04-04 15:05:04 -07:00
184a77f909 0.0.16 2026-04-04 15:01:03 -07:00
3 changed files with 4 additions and 4 deletions

View File

@ -688,10 +688,10 @@ toes share my-app
Every request to your app includes an `x-app-url` header with the app's public-facing URL. When shared, this is the tunnel URL (e.g., `https://myapp.toes.space`). When not shared, it's the local URL (e.g., `http://myapp.toes.local`). This works whether the request arrives through the local proxy or through a tunnel.
Use `appUrl()` from `@because/toes` to read it — never hardcode your app's URL:
Use `appUrl()` from `@because/toes/tools` to read it — never hardcode your app's URL:
```tsx
import { appUrl } from '@because/toes'
import { appUrl } from '@because/toes/tools'
app.get('/callback', c => {
const url = appUrl(c.req.raw)

View File

@ -1,6 +1,6 @@
{
"name": "@because/toes",
"version": "0.0.15",
"version": "0.0.16",
"description": "personal web appliance - turn it on and forget about the cloud",
"module": "src/index.ts",
"type": "module",

View File

@ -1 +1 @@
export * from './server'
export * from './tools'