Commit graph

3 commits

Author SHA1 Message Date
Sam Ko
06ede796f2
chore(examples): update reproduction template (#66301)
## Why?

We get this error when we use `npx` to download the
reproduction-template.

![CleanShot 2024-05-28 at 17 25
40@2x](https://github.com/vercel/next.js/assets/28912696/a2f3c3ce-1a2c-4629-9914-9e88bb9c9632)

Updating the template should fix this error.
2024-05-28 18:11:47 -07:00
Steven
4466ba436b
chore(examples): use default prettier for examples/templates (#60530)
## Description
This PR ensures that the default prettier config is used for examples
and templates.

This config is compatible with `prettier@3` as well (upgrading prettier
is bigger change that can be a future PR).

## Changes
- Updated `.prettierrc.json` in root with `"trailingComma": "es5"` (will
be needed upgrading to prettier@3)
- Added `examples/.prettierrc.json` with default config (this will
change every example)
- Added `packages/create-next-app/templates/.prettierrc.json` with
default config (this will change every template)

## Related

- Fixes #54402
- Closes #54409
2024-01-11 16:01:44 -07:00
Sam Ko
5c0e4895f3
Switch default reproduction-template to app (#53453)
### Updating reproduction examples

Our current `pnpm create next-app -e reproduction-template`, which is present in our Issues template, will create a Pages app. This PR updates the default (`reproduction-template`) to App Router, and adds a `reproduction-template-pages` example.
2023-08-01 18:20:19 +00:00