Skip to content

Commit

Permalink
fix: templates (#425)
Browse files Browse the repository at this point in the history
* fix: templates to have `title` defined in `Frog` constructor

* chore: changesets
  • Loading branch information
dalechyn authored Jul 21, 2024
1 parent d763d1a commit ab1a969
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/silent-drinks-brush.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-frog": patch
---

Fixed an issue with absent `title` in templates that led to a typing error.
1 change: 1 addition & 0 deletions templates/bun/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { serveStatic } from 'frog/serve-static'
export const app = new Frog({
// Supply a Hub to enable frame verification.
// hub: neynar({ apiKey: 'NEYNAR_FROG_FM' }),
title: 'Frog Frame',
})

app.frame('/', (c) => {
Expand Down
1 change: 1 addition & 0 deletions templates/cloudflare-worker/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { serveStatic } from 'frog/serve-static'
export const app = new Frog({
// Supply a Hub to enable frame verification.
// hub: neynar({ apiKey: 'NEYNAR_FROG_FM' })
title: 'Frog Frame',
})

app.frame('/', (c) => {
Expand Down
1 change: 1 addition & 0 deletions templates/default/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { devtools } from 'frog/dev'
export const app = new Frog({
// Supply a Hub to enable frame verification.
// hub: neynar({ apiKey: 'NEYNAR_FROG_FM' })
title: 'Frog Frame',
})

app.use('/*', serveStatic({ root: './public' }))
Expand Down
1 change: 1 addition & 0 deletions templates/next/app/api/[[...routes]]/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const app = new Frog({
basePath: '/api',
// Supply a Hub to enable frame verification.
// hub: neynar({ apiKey: 'NEYNAR_FROG_FM' })
title: 'Frog Frame',
})

// Uncomment to use Edge Runtime
Expand Down
1 change: 1 addition & 0 deletions templates/node/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { devtools } from 'frog/dev'
export const app = new Frog({
// Supply a Hub to enable frame verification.
// hub: neynar({ apiKey: 'NEYNAR_FROG_FM' })
title: 'Frog Frame',
})

app.use('/*', serveStatic({ root: './public' }))
Expand Down
1 change: 1 addition & 0 deletions templates/vercel/api/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const app = new Frog({
basePath: '/api',
// Supply a Hub to enable frame verification.
// hub: neynar({ apiKey: 'NEYNAR_FROG_FM' })
title: 'Frog Frame',
})

app.frame('/', (c) => {
Expand Down

0 comments on commit ab1a969

Please sign in to comment.