Build your application locally and prepare to deploy it on the edge.
Usage
azion buildOptional flags
help
The --help option displays more information about the build command.
config-dir
The --config-dir option specifies the relative path to where your custom azion.json and args.json files are stored. The default value is azion.
entry
The --entry option specifies the code entrypoint for the build. The default value is ./main.js.
preset
The --preset option can be specified in case the preset needs changing during the build process, but it isn’t mandatory. The expected values are:
- Html
- Javascript
- Typescript
- Angular
- Astro
- Hexo
- Next
- React
- Vue
- static
skip-framework-build
The --skip-framework-build option indicates whether to bypass the framework build phase before executing azion build. This is useful when you’ve already built your framework separately and want to skip that step.
use-node-polyfills
The --use-node-polyfills option specifies whether to use node polyfills in the build process. This helps ensure compatibility when using Node.js-specific APIs in edge environments.
use-own-worker
The --use-own-worker option indicates that the constructed code inserts its own worker expression, such as addEventListener("fetch") or similar, without the need to inject a provider. This is useful when your code already handles the worker setup.