This PR updates the with-web-worker example to use the App Router. Here
are the changes that have been made:
- Renamed the `pages` folder to the `app` folder.
- Updated the routing for `/` files to align with the App Router.
- Added the layout.tsx file as part of the App Router.
- Updated the package.json file.
The following actions were performed as part of this PR:
- Ran `pnpm prettier-check` with no issues found.
- Executed the `pnpm check-examples` script.
---------
Co-authored-by: samcx <sam@vercel.com>
## Changes
- Updated dependencies
- Migrated to typescript
- Removed `div` in favour of Fragment
- Replaces `var` with `let` since we don't need global hoisting here
## Documentation / Examples
- [x] Make sure the linting passes by running `pnpm lint`
- [x] The "examples guidelines" are followed from [our contributing
doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)