Skip to main content

Server Configuration

Everything about configuring and managing your EdgeBase server — from access rules to rate limiting to custom email templates.

All service-key-backed server features described in this section are available across all Admin SDKs.


Configuration File

All server behavior is defined in edgebase.config.ts:

import { defineConfig } from '@edgebase/shared';

export default defineConfig({
release: false, // Set true for production (deny-by-default)
databases: {
shared: {
tables: { /* schema + access + handlers */ },
},
},
auth: { /* providers, hooks */ },
storage: { /* buckets + access + handlers */ },
rooms: { /* multiplayer rooms */ },
});

Key Topics

TopicDescription
Config ReferenceFull defineConfig() options and defaults
Access RulesDeclarative access control for tables and storage
Service KeysServer-side auth that bypasses rules (with optional scoping)
Rate Limiting2-tier defense: software counters + Cloudflare Binding ceilings
EmailTransactional email for verification, password reset, invitations
PluginsExtend EdgeBase with community or custom plugins (see dedicated section)
Raw SQLDirect SQLite access via Admin SDK
Native ResourcesAccess Cloudflare KV, D1, Vectorize bindings directly

Next Steps

PageDescription
Config ReferenceComplete configuration options
Access RulesTable and storage access control
Service KeysServer-side rule bypass with scoping
Rate LimitingDDoS protection and abuse prevention
EmailEmail providers and templates
PluginsBuild-time plugin system
Raw SQLDirect SQL queries from Admin SDK
Native ResourcesKV, D1, R2, Vectorize bindings