Commit graph

4 commits

Author SHA1 Message Date
archanaagivale30
b5f97ca70e
Updated with-sitemap example for App Router (#66995)
Hello

This PR updates the with-sitemap example to use:

1. App Router
2. TypeScript
3. sitemap.js

---------

Co-authored-by: Sam Ko <sam@vercel.com>
2024-06-20 09:18:56 +00: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
Henrik Wenz
92aafcbcf1
[Docs] Add config types to all examples (#40083)
<!--
Thanks for opening a PR! Your contribution is much appreciated.
In order to make sure your PR is handled as smoothly as possible we request that you follow the checklist sections below.
Choose the right checklist for the change that you're making:
-->

## Summary

- Added jsdoc typing for all examples using `next.config.js`
- Added jsdoc typing for all examples using `tailwind.config.js`

## 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.md#adding-examples)
2022-08-31 16:41:22 -05:00
Arsalan Khattak
cc541fb252
Add Sitemap Example (#15047)
* Add with-sitemap Example

* Update README

* Update examples/with-sitemap/scripts/generate-sitemap.js

Co-authored-by: Luis Alvarez D. <luis@vercel.com>

* Update examples/with-sitemap/package.json

Co-authored-by: Luis Alvarez D. <luis@vercel.com>

* Update examples/with-sitemap/public/sitemap.xml

Co-authored-by: Luis Alvarez D. <luis@vercel.com>

* Update README

* Add .env Info to README

* Update examples/with-sitemap/README.md

Co-authored-by: Luis Alvarez D. <luis@vercel.com>

* Update examples/with-sitemap/README.md

Co-authored-by: Luis Alvarez D. <luis@vercel.com>

* Update examples/with-sitemap/README.md

Co-authored-by: Luis Alvarez D. <luis@vercel.com>

* Update examples/with-sitemap/README.md

Co-authored-by: Luis Alvarez D. <luis@vercel.com>

Co-authored-by: Luis Alvarez D. <luis@vercel.com>
2020-07-24 11:35:39 -05:00