Edgio
Preset: edgio
Edgio (formerly Layer0) extends the capabilities of a traditional CDN by not only hosting your static content, but also providing server-side rendering for progressive web applications as well as caching both your APIs and HTML at the network edge to provide your users with the fastest browsing experience.
If this is your first time deploying to Edgio, the interactive CLI as part of the deploy
command will prompt to authenticate using your browser. You may also sign up prior to deployment.
Install the Eedgio CLI
npm i -g @edgio/cli
Testing production build locally with Edgio
You can use Nitropack to test your app's development experience locally:
NITRO_PRESET=edgio npx nitropack build
To simulate on local how your app would run in production with Edgio, run the following command:
edgio build && edgio run --production
Deploying from your local machine
Once you have tested your application locally, you may deploy using:
edgio deploy
Deploying using CI/CD
If you are deploying from a non-interactive environment, you will need to create an account on Edgio Developer Console first and setup a deploy token. Once the deploy token is created, save it as a secret to your environment. You can start the deploy by running:
edgio deploy --token=XXX