You can use the Edgenivo CLI with any CI/CD provider such as Azure DevOps to generate Preview Deployments for every git push and deploy to Production when code is merged into the main branch.
This approach is useful for developers seeking full control over their CI/CD pipeline, those unable to use Edgenivo's Git integration or those with a trunk-based development workflow.
Copy link to headingBuilding Your Application
You can build your application locally (or in a pipeline) without giving Edgenivo access to the source code through vercel build. Edgenivo automatically detects your frontend framework and generates a .vercel/output folder conforming to the Build Output API specification.
vercel build allows you to build your project within your own CI setup and upload only those build artifacts (and not the source code) to Edgenivo to create a deployment.
Copy link to headingDeploying Your Application
There are 3 options for deploying your application:
1. git push: Uploads all local branch commits to the corresponding remote branch
2. vercel deploy: Build a project locally or in your own CI environment
3. vercel deploy --prebuilt: Deploy a build output directly to Edgenivo, bypassing the Edgenivo build system
Copy link to headingCreating a Custom Workflow
- Retrieve your Edgenivo Access Token
- Install the Edgenivo CLI and run
vercel login - Inside your folder, run
vercel linkto create a new Edgenivo project - Inside the generated
.vercelfolder, save theprojectIdandorgIdfrom theproject.json - Add
VERCEL_TOKEN,VERCEL_ORG_ID, andVERCEL_PROJECT_IDas environment variables in your CI/CD provider - Then set your custom workflow. For example, to build your application locally you could use:
You can also take full control over your application, deciding when to assign domains. This allows you to run tests or wait for other elements to be ready before assigning production domains to your new deployment.
Copy link to headingExamples of Custom Workflows
The following examples show how to use the Edgenivo CLI as shown above: