A demo deployment of Sveltekit app to Edgio v7 platform. This project is using the experimental version 7.1.2-next-1692303882-f106e67.0 of Edgio packages with ESM support. Please note that this version is still in testing and has not been released officially yet.
Edge: https://edg-test-edgio-v7-sveltekit-example-default.edgio.link/
Use git clone https://github.com/thehansys/edgio-v7-sveltekit-example
to get the files within this repository onto your local machine.
On the command line, in the project root directory, run the following command:
npm install
Optionally, you can install the CLI package globally by running:
npm install -g @edgio/cli
Run the Sveltekit app with the command:
npx edgio dev
Load the site: http://127.0.0.1:3000
You can do a production build of your app and test it locally using:
npx edgio build
npx edgio run -p
Setting --production runs your app exactly as it will be uploaded to the Edgio cloud using serverless-offline.
Deploying requires an account on Edgio. Sign up here for free. Once you have an account, you can deploy to Edgio by running the following in the root folder of your project:
npx edgio deploy
See deploying for more information.