Skip to content

🎥 Make videos programmatically with React

ES - Add Next.js endpoints to the docs

MehmetAdemi944086781466
diff --git a/packages/docs/docs/editor-starter/backend-routes.mdx b/packages/docs/docs/editor-starter/backend-routes.mdx
index 3689134c60..8c16e9ee46 100644
--- a/packages/docs/docs/editor-starter/backend-routes.mdx
+++ b/packages/docs/docs/editor-starter/backend-routes.mdx
@@ -13,7 +13,8 @@ The default implementation uses the React Router 7 framework.
Used to generate captions for a video based on an audio file.
-- [Reference implementation](https://github.com/remotion-dev/editor-starter/blob/main/src/app/routes/api/captions.ts)
+- [Reference implementation using React Router 7](https://github.com/remotion-dev/editor-starter/blob/main/src/routes/api/captions.ts)
+- [Implementation using Next.js](https://gist.github.com/MehmetAdemi/545f0fcdf2f8b8f9edbbc5146bde0a74)
- [See usages](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter%20%2Fapi%2Fcaptions&type=code)
### `GET /api/font/:name`
@@ -21,26 +22,30 @@ Used to generate captions for a video based on an audio file.
Returns the metadata for a specific font, such as available weights and styles and their corresponding Google Fonts URLs.
This information is provided by the backend because the metadata of all default fonts would be more than 10MB.
-- [Reference implementation](https://github.com/remotion-dev/editor-starter/blob/main/src/app/routes/api/font.ts)
+- [Reference implementation using React Router 7](https://github.com/remotion-dev/editor-starter/blob/main/src/routes/api/font.ts)
+- [Implementation using Next.js](https://gist.github.com/MehmetAdemi/4ddefd93123d718cbfdbc3190d2e8434)
- [See usages](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter%20%2Fapi%2Ffont&type=code)
### `POST /api/upload`
Needed to create a presigned URL for uploading a file to S3.
-- [Reference implementation](https://github.com/remotion-dev/editor-starter/blob/main/src/app/routes/api/upload.ts)
+- [Reference implementation using React Router 7](https://github.com/remotion-dev/editor-starter/blob/main/src/routes/api/upload.ts)
+- [Implementation using Next.js](https://gist.github.com/MehmetAdemi/a1c83d97fcaf2c773c2913dbd2471de0)
- [See usages](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter%20%2Fapi%2Fupload&type=code)
### `POST /api/render`
Triggers a render on Remotion Lambda.
-- [Reference implementation](https://github.com/remotion-dev/editor-starter/blob/main/src/app/routes/api/render.ts)
+- [Reference implementation using React Router 7](https://github.com/remotion-dev/editor-starter/blob/main/src/routes/api/render.ts)
+- [Implementation using Next.js](https://gist.github.com/MehmetAdemi/a96784de92ee91e4907bdedb20e6b90c)
- [See usages](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter%20%2Fapi%2Frender&type=code)
### `POST /api/progress`
Gets the current progress of a render on Remotion Lambda.
-- [Reference implementation](https://github.com/remotion-dev/editor-starter/blob/main/src/app/routes/api/progress.ts)
+- [Reference implementation using React Router 7](https://github.com/remotion-dev/editor-starter/blob/main/src/routes/api/progress.ts)
+- [Implementation using Next.js](https://gist.github.com/MehmetAdemi/15c21e1b847e5e79e7df7b2c4d5dc494)
- [See usages](https://github.com/search?q=repo%3Aremotion-dev%2Feditor-starter%20%2Fapi%2Fprogress&type=code)