Compare commits
No commits in common. "211e441dd4016f4824e2a002085838d31b14fc5e" and "70f52a9b5534340956ec0ec52ed7fc500d07b6b4" have entirely different histories.
211e441dd4
...
70f52a9b55
|
|
@ -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.
|
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/tools` to read it — never hardcode your app's URL:
|
Use `appUrl()` from `@because/toes` to read it — never hardcode your app's URL:
|
||||||
|
|
||||||
```tsx
|
```tsx
|
||||||
import { appUrl } from '@because/toes/tools'
|
import { appUrl } from '@because/toes'
|
||||||
|
|
||||||
app.get('/callback', c => {
|
app.get('/callback', c => {
|
||||||
const url = appUrl(c.req.raw)
|
const url = appUrl(c.req.raw)
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@because/toes",
|
"name": "@because/toes",
|
||||||
"version": "0.0.16",
|
"version": "0.0.15",
|
||||||
"description": "personal web appliance - turn it on and forget about the cloud",
|
"description": "personal web appliance - turn it on and forget about the cloud",
|
||||||
"module": "src/index.ts",
|
"module": "src/index.ts",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
export * from './tools'
|
export * from './server'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user