flowchart LR
A[Trigger] -->|args| B(Dispatcher)
B --> C(Prebuild)
C -->|args| D(Common Build)
D --> E[Artifacts]
An external call to run a build.
- Receive build options(args);
- Select which build process to run;
- Load necessary template files and import correct modules (prebuild and configs);
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.
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.
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'.