template-next-pages-dir
template-next-pages-dir copied to clipboard
Next.js template for programmatic video apps
This is a Next.js template for building programmatic video apps, with @remotion/player and @remotion/lambda built in.
This template uses the Next.js Pages directory. There is a App directory version of this template available.
Getting Started
Use this template to clone it into your GitHub account. Run
npm i
afterwards. Alternatively, use this command to scaffold a project:
npx create-video@latest --next-pages-dir
Commands
Start the Next.js dev server:
npm run dev
Open the Remotion Studio:
npm run remotion
The following script will set up your Remotion Bundle and Lambda function on AWS:
node deploy.mjs
You should run this script after:
- changing the video template
- changing
config.mjs - upgrading Remotion to a newer version
Set up rendering on AWS Lambda
This template supports rendering the videos via Remotion Lambda.
-
Copy the
.env.examplefile to.envand fill in the values. Complete the Lambda setup guide to get your AWS credentials. -
Edit the
config.mjsfile to your desired Lambda settings. -
Run
node deploy.mjsto deploy your Lambda function and Remotion Bundle.
Docs
Get started with Remotion by reading the fundamentals page.
Help
We provide help on our Discord server.
Issues
Found an issue with Remotion? File an issue here.
License
Note that for some entities a company license is needed. Read the terms here.