Skip to content

Commit

Permalink
chore: add comment to template
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm committed Apr 4, 2024
1 parent d219dff commit 88e4e6c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions templates/next/app/api/[[...routes]]/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,17 @@ devtools(app, { serveStatic })

export const GET = handle(app)
export const POST = handle(app)

// NOTE: That if you are using the devtools and enable Edge Runtime, you will need to copy the devtools
// static assets to the public folder. You can do this by adding a script to your package.json:
// ```json
// {
// scripts: {
// "copy-static": "cp -r ./node_modules/frog/_lib/ui/.frog ./public/.frog"
// }
// }
// ```
// Next, you'll want to set up the devtools to use the correct assets path:
// ```ts
// devtools(app, { assetsPath: '/.frog' })
// ```

0 comments on commit 88e4e6c

Please sign in to comment.