Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 1.04 KB

overview.md

File metadata and controls

37 lines (27 loc) · 1.04 KB

Overview

Build Pipeline

flowchart LR

A[Trigger] -->|args| B(Dispatcher)
B --> C(Prebuild)
C -->|args| D(Common Build)
D --> E[Artifacts]
Loading

Trigger

An external call to run a build.

Dispatcher

  • Receive build options(args);
  • Select which build process to run;
  • Load necessary template files and import correct modules (prebuild and configs);

Prebuild

Custom prebuild module that runs actions to generate entrypoint and necessary files.

The user is free to run any action in this step. All actions must be called in a exported main function.

Common Build

Module that runs azion common build.

Polyfills can be used to generate the worker(s) file(s).

Some configs can be passed to the builder but if user tries to override azion worker configs this passed configs will be ignored.

Artifacts

The '.edge' folder will be generated representing the edge locally. Files generated to run on the infrastructure:

  • JS worker(s) => '.edge/workers.js';
  • Assets => '.edge/storage/*';
  • Environment variables => '.edge/.env'.