Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Deno 4 min read Announcement mediumAdept

Introducing More Flexible Domain Association for Deno Subhosting

Deno Subhosting now supports organization-wide wildcard domains where different subdomains under one wildcard (e.g. foo.example.com and bar.example.com under *.example.com) can map to different deployments. Domain names can use {deployment.id} and {project.name} template variables, with restricted formats allowed on deno.dev. Custom domains are registered via the Subhosting API, get TLS certificates provisioned, and are then attached at deployment creation through a new domains field or later via PUT/DELETE endpoints. Attaching a domain automatically detaches it from any previous deployment.

Related posts

  • Manage your Deno Deploy and Deno Subhosting projects with Terraform

    Deno mediumAdept

    Deno now ships an official Terraform provider (denoland/deno) for managing Deno Deploy and Deno Subhosting projects, custom domains and deployments as infrastructure-as-code. A walkthrough deploys a local TypeScript server with a static asset: configure the provider with an organization ID and token (or DENO_DEPLOY_ORGANIZATION_ID/DENO_DEPLOY_TOKEN env vars), create a deno_project, collect files via the deno_assets data source with a root path and glob pattern, then define a deno_deployment with an entry point and env vars. Running terraform plan and apply creates the resources, and terraform state show reveals the deployment's deno.dev URL. The provider is pitched as simpler than calling the Subhosting API directly when coordinating hundreds of projects.

  • Build Your Own Cloud IDE with the Subhosting API

    Deno mediumAdept

    A cloud IDE can be built on the Deno Subhosting API, which programmatically deploys user code to Deno Deploy's global V8 isolate cloud within seconds. The walkthrough builds a Hono server with routes to list and create projects and deployments, plus a small TypeScript client that wraps the Subhosting REST endpoints with bearer-token auth. It also covers a server-rendered JSX page and an Ace Editor frontend that polls deployment status every five seconds. The deployment payload is explained in detail: entryPointUrl must map to a key in an assets map of files, and envVars inject credentials into the deployed code.

  • Run npm and Deno anywhere

    Deno mediumAdept

    Deno apps, including those using npm specifiers, can be containerized with the official denoland/deno Docker image and deployed to any VPS or container platform, not just Deno Deploy. A shared Oak-based main.ts, Dockerfile and docker-compose.yml are built locally, then pushed and run on AWS Lightsail via Docker Hub, on a Digital Ocean Droplet via its container registry and docker run, and on Google Cloud Run via Artifact Registry and gcloud run deploy. npm specifiers were not yet supported on Deno Deploy at the time.

  • How security and tenant isolation allows Deno Subhosting to run untrusted code securely

    Deno easyNovice

    Deno Deploy and Deno Subhosting isolate untrusted tenant code using layered defenses mapped to a five-point threat model: per-deployment V8 isolates, a virtualized filesystem, and separate VPCs for ingress and outbound traffic. Each isolate runs in its own process on a restricted Deno runtime, inside Linux namespaces, with seccomp filters to detect unusual syscalls. For resource fairness, cgroups cap CPU, memory and I/O, and an internal WatchDog service kills isolates that exceed memory limits, block the event loop, or show abusive patterns such as crypto mining. The mechanisms are described at a high level, without configuration or implementation specifics.

  • Deno 1.45: Workspace and Monorepo Support

    Deno mediumAdept

    Deno 1.45 adds workspace support for monorepos, configured via a "workspace" array in deno.json. Global config applies to members with per-member overrides, and Deno and npm workspaces can be mixed. The release also revamps Node-API and many node:http/fs/crypto compat details, adds a --frozen lockfile flag for CI (replacing --lock-write), opt-in npm lifecycle scripts via --allow-scripts, npm-like deno install behind DENO_FUTURE=1, and deno init --lib. It deprecates deno vendor in favor of the vendor option, discovers __tests__ directories, adds Blob.bytes(), bakes .env values into deno compile binaries, and gives the language server per-deno.json scopes. It ships V8 12.7 and TypeScript 5.5.2.

The quest for software engineering knowledge.

Look:
Layout: