Skip to content

Commit

Permalink
chore: enable cf log
Browse files Browse the repository at this point in the history
  • Loading branch information
yjl9903 committed Oct 1, 2024
1 parent 9447ef4 commit f23bd67
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/frontend/web/cloudflare/remix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const remix = <E extends Env = any>(options: RemixHandlerOptions): Handle
const url = new URL(request.url);
const ttl = url.pathname.startsWith('/assets/')
? 60 * 60 * 24 * 365 // 1 year
: 60 * 5; // 5 minutes
: 60; // 5 minutes
return await getAssetFromKV(
// @ts-ignore
{ request, waitUntil },
Expand Down
3 changes: 3 additions & 0 deletions apps/frontend/web/wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ kv_namespaces = [
{ binding = "ASSETS", id = "4ab440b1ea1e42c18cdd62a454daba24", preview_id = "4ab440b1ea1e42c18cdd62a454daba24" },
]

[observability]
enabled = true

[vars]
APP_HOST = "garden.test.breadio.wiki"
SERVER_PROTOCOL = "https"
Expand Down

0 comments on commit f23bd67

Please sign in to comment.