rsnext/examples/app-dir-mdx
Balázs Orbán 25466918e9
fix(next-mdx): mark mdx-js/* as optional (#45440)
Realized when I was checking out
https://github.com/vercel/next.js/issues/45431 that the package manager
will complain about missing peer deps, even though they are not required
with the `experimental.mdxRs` option.

Fixing a small visual issue too:
<details>
<summary>Before:</summary>
<img
src="https://user-images.githubusercontent.com/18369201/215777932-caf133c0-1459-4c25-a438-11020e41f879.png"/>
</details>
<details>
<summary>After:</summary>
<img
src="https://user-images.githubusercontent.com/18369201/215777802-d3f245ae-af56-46e9-8ccd-3bac241bdcfa.png"/>
</details>


## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have a helpful link attached, see
[`contributing.md`](https://github.com/vercel/next.js/blob/canary/contributing.md)

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the
feature request has been accepted for implementation before opening a
PR.
- [ ] Related issues linked using `fixes #number`
- [ ]
[e2e](https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs)
tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have a helpful link attached, see
[`contributing.md`](https://github.com/vercel/next.js/blob/canary/contributing.md)

## Documentation / Examples

- [ ] Make sure the linting passes by running `pnpm build && pnpm lint`
- [ ] The "examples guidelines" are followed from [our contributing
doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
2023-02-07 15:59:22 -08:00
..
app fix(next-mdx): mark mdx-js/* as optional (#45440) 2023-02-07 15:59:22 -08:00
public Add support for rendering MDX as a server component (#44651) 2023-01-06 13:09:05 -08:00
types Add support for rendering MDX as a server component (#44651) 2023-01-06 13:09:05 -08:00
.gitignore Add support for rendering MDX as a server component (#44651) 2023-01-06 13:09:05 -08:00
mdx-components.tsx Add support for rendering MDX as a server component (#44651) 2023-01-06 13:09:05 -08:00
next.config.js Add support for rendering MDX as a server component (#44651) 2023-01-06 13:09:05 -08:00
package.json fix(next-mdx): mark mdx-js/* as optional (#45440) 2023-02-07 15:59:22 -08:00
README.md Add support for rendering MDX as a server component (#44651) 2023-01-06 13:09:05 -08:00
tsconfig.json Add support for rendering MDX as a server component (#44651) 2023-01-06 13:09:05 -08:00

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

API routes can be accessed on http://localhost:3000/api/hello. This endpoint can be edited in pages/api/hello.ts.

The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.

This project uses next/font to automatically optimize and load Inter, a custom Google Font.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.