These steps apply to themes sold for Next.js. Check the theme page for the exact setup notes of each package.
Run it locally
- Unzip your download and open the project folder in a terminal.
- Install dependencies with
npm install. - Start the development server with
npm run devand open the address it prints, usually http://localhost:3000. - Edit the content and data files, replacing the sample text and images with your own.
Build it
Run npm run build. If the theme is set up for static export, the build creates a folder of static files. Read the project's README to confirm what your package produces.
Deploy to Vercel
- Put the project in a Git repository on GitHub, GitLab or Bitbucket.
- In Vercel, choose Add New → Project and import the repository.
- Accept the detected Next.js settings and click Deploy.
- Add your custom domain under the project's Settings → Domains.
Deploy to Netlify
- Push the project to a Git repository.
- In Netlify, choose Add new site → Import an existing project and select the repository.
- Use the build command and publish directory suggested for your package (for static export, the build command is
npm run buildand the publish directory is the output folder named in the README). - Click Deploy, then add your domain under Domain management.
Environment variables
If the project documents environment variables, add them in the host's settings rather than committing them to Git.
Stuck? Email support@buildkitly.com with your order number and the build log.