@aziontech/presets
v1.0.0
Published
The Presets package provides pre-configured presets for different frameworks and libraries to simplify deployment on the Azion Edge Platform.
Readme
Azion Presets
The Presets package provides pre-configured presets for different frameworks and libraries to simplify deployment on the Azion Edge Platform.
Available Presets
- Angular
- Astro
- Docusaurus
- Eleventy
- Emscripten
- Gatsby
- Hexo
- HTML
- Hugo
- JavaScript
- Jekyll
- Next.js
- Nuxt.js
- OpenNext.js
- Preact
- Qwik
- React
- Rust WASM
- Stencil
- Svelte
- TypeScript
- VitePress
- Vue
- VuePress
Usage with Azion CLI
Link your project:
azion linkChoose the preset you want to use when prompted.
Build and preview:
azion build azion devDeploy:
azion deploy --local
Nuxt.js Custom Preset (Nitro)
Supports both Server-Side Rendering (SSR) and Static Site Generation (SSG) for Nuxt.js applications.
Features:
- SSR support with edge runtime optimization
- SSG support with automatic static generation
- Seamless integration with Azion CLI
- Optimized for edge computing performance
Quick Start:
npm install azionConfigure your nuxt.config.ts:
import { createRequire } from 'module';
const require = createRequire(import.meta.url);
export default defineNuxtConfig({
nitro: {
preset: require.resolve('@aziontech/preset/nuxt/ssr'), // or '@aziontech/preset/nuxt/ssg'
},
});📖 Read the complete Nuxt.js preset documentation
Svelte Custom Adapter
Supports both Server-Side Rendering (SSR) and Static Site Generation (SSG) for SvelteKit applications.
Features:
- SSR support with edge runtime optimization
- SSG support with automatic static generation
- Seamless integration with Azion CLI
- Optimized for edge computing performance
Quick Start:
npm install azionConfigure your svelte.config.js:
import adapter from '@aziontech/preset/svelte/ssr';
/** @type {import('@sveltejs/kit').Config} */
const config = {
kit: {
adapter: adapter(),
},
};
export default config;📖 Read the complete Svelte preset documentation
Contributing
We welcome contributions to add support for more frameworks and improve existing presets. Please check the main Contributing Guidelines for more information.
