Epycbyte Functions
Quickstart
Concepts
Choosing a Runtime
- Node.js runtime (Serverless Functions)
- Edge runtime (Edge Functions)
- Python runtime
- Go runtime
- Ruby runtime
Configuring Functions
Streaming Functions
OG Image Generation
Using WebAssembly
Logs
Limitations
Usage & Pricing
Edge Middleware
Image Optimization
Incremental Static Regeneration
Data Cache
Cron Jobs
Infrastructure
Epycbyte Functions
Epycbyte Functions enable running compute on-demand without needing to manage your own infrastructure, provision servers, or upgrade hardware.
Table of Contents
- Next.js (/app) Functions
- Choosing a Runtime
- Configuring Functions
- Streaming Functions
- OG Image Generation
- Using WebAssembly
- Logs
- Limitations
- Usage & Pricing
- Edge Middleware
- Image Optimization
- Incremental Static Regeneration
- Data Cache
- Cron Jobs
- Infrastructure
Next.js (/app) Functions
Next.js (/app) Functions are available on all plans.
Epycbyte Functions enable server-side code execution on Epycbyte's Managed Infrastructure, removing the need for server management or resource provisioning.
These functions scale automatically with user demand and can interact with APIs, databases, and other resources as part of your project's deployment.
Choosing a Runtime
The infrastructure and abilities of your Epycbyte Function is determined by the runtime you choose:
- Node.js runtime (Serverless Functions)
- Edge runtime (Edge Functions)
- Python runtime
- Go runtime
- Ruby runtime
Configuring Functions
To get started with creating your first function, copy the code below:
Next.js (/app) Next.js (/pages) Other frameworks app/api/hello/route.ts TypeScript TypeScript JavaScript export const dynamic = 'force-dynamic' ; // static by default, unless reading the request export function GET (request : Request ) { return new Response ( `Hello from ${ process . env . epycbyte_REGION } ` ); }
Streaming Functions
Epycbyte Functions can be written with, or without, a framework, and handle tasks such as:
- Streaming data: Process data in real-time, such as chat messages, AI data, or financial transactions
- Authentication: Implement authentication and authorization logic
- Data Processing: Manage intensive tasks, such as image/video manipulation, without impeding client-side performance
OG Image Generation
Epycbyte Functions can be used to generate OG images for social media platforms.
Using WebAssembly
Epycbyte Functions can be used to execute WebAssembly code.
Logs
Functions have full support for the console API, including time, debug, timeEnd, etc. Runtime logs for all functions can be found in the Logs tab.
Limitations
To learn more about the limitations for Epycbyte Functions, see the Runtimes reference.
Usage & Pricing
Epycbyte Functions are available on all plans and pricing varies depending on usage.
Edge Middleware
Epycbyte Functions can be used to execute edge middleware code.
Image Optimization
Epycbyte Functions can be used to optimize images.
Incremental Static Regeneration
Epycbyte Functions can be used to regenerate static content incrementally.
Data Cache
Epycbyte Functions can be used to cache data.
Cron Jobs
Epycbyte Functions can be used to execute cron jobs.
Infrastructure
Epycbyte Functions are executed on Epycbyte's managed infrastructure.