Compile Targets
Quickback compiles your definitions for different deployment targets. Learn about Cloudflare Workers, Neon, and Supabase output.
The Quickback compiler generates different output based on your chosen providers. Each target includes optimized code for the specific runtime and database.
Available Targets
| Target | Runtime | Database | Auth |
|---|---|---|---|
| Cloudflare | Cloudflare Workers | D1 (SQLite) | Better Auth |
| Neon | Cloudflare Workers / Node.js | Neon (PostgreSQL) | Better Auth + Neon Authorize |
| Supabase | Supabase Edge Functions | Supabase (PostgreSQL) | Supabase Auth |
How Targets Differ
Cloudflare (Recommended)
- Runtime: Hono on Cloudflare Workers
- Security: Application-level firewall, access, guards, masking
- Database: D1 with Drizzle ORM
- Best for: Full-stack applications, edge deployment
Neon
- Runtime: Hono on Cloudflare Workers or Node.js
- Security: PostgreSQL Row Level Security (RLS) + application-level guards
- Database: Neon PostgreSQL with Drizzle ORM
- Best for: Applications needing full PostgreSQL capabilities
Supabase
- Runtime: Supabase Edge Functions
- Security: PostgreSQL Row Level Security (RLS) only
- Database: Supabase PostgreSQL
- Best for: Existing Supabase projects
Configuration
Set your target in quickback.config.ts:
import { defineConfig, defineRuntime, defineDatabase, defineAuth } from "@quickback/compiler";
export default defineConfig({
name: "my-app",
providers: {
runtime: defineRuntime("cloudflare"), // or "supabase"
database: defineDatabase("cloudflare-d1"), // or "neon", "supabase"
auth: defineAuth("better-auth"), // or "supabase-auth"
},
});