Qwik is a web framework for building instead loading web applications at any size or complexity. Zerops makes deploying and running Qwik apps, both server side rendered and static, a breeze. This recipe showcases the Node.js version, see zeropsio/recipe-qwik-static for the Static version.
You can either click the deploy button to deploy directly on Zerops, or manually copy the import yaml to the import dialog in the Zerops app.
- Latest version of Qwik with SSR running on a Zerops Static service.
This recipe is ready for production as is, and will scale horizontally by adding more containers in case of high traffic surges. If you want to achieve the highest baseline reliability and resiliace, start with at least two containers (add minContainers: 2 in recipe YAML in the app service section, or change the minimum containers in "Automatic Scaling configuration" section of service detail).
If you want to modify your existing Qwik app to efficiently run on Zerops, follow these steps:
- Install the necessary adapter with:
sh npm run qwik add expressRunning this command will make the following changes
- A
build.server&servescript will be automatically added to your package.json file. - A
adapters/express/vite.config.tsandsrc/entry.express.tsxwill be created. - It will install the required dependencies for SSR.
Now, just add the zerops.yml file to the root of your project, and make sure to check package.json for the scripts.
Need help setting your project up? Join Zerops Discord community.