You have deployed a Deno application with a custom domain configured. The app returns a JSON response with {"message": "Hello from custom domain"}. What will the browser display when visiting the custom domain URL?
import { serve } from "https://deno.land/std@0.177.0/http/server.ts"; serve(() => new Response(JSON.stringify({ message: "Hello from custom domain" }), { headers: { "content-type": "application/json" }, }));
Think about what the server sends as a response and how the browser displays JSON content.
The server responds with a JSON string and the correct content-type header. The browser displays the JSON text directly.
You want to configure a custom domain for your Deno Deploy project using the deno.json configuration file. Which snippet correctly sets the domain example.com?
Check the correct property name and data type for custom domains in the deploy config.
The deploy section uses domains as an array of strings to list domains.
You set up a custom domain for your Deno Deploy app, but visiting the domain shows a DNS error. What is the most likely cause?
Think about what DNS does and what must be configured for a domain to resolve.
If DNS records do not point to Deno Deploy, the domain cannot resolve to the app, causing a DNS error.
Host header when accessing a Deno Deploy app via a custom domain?You access your Deno Deploy app using the custom domain myapp.example.com. What will be the value of the Host header in the incoming HTTP request to your app?
The Host header reflects the domain name used in the browser URL.
The Host header contains the domain the client requested, which is the custom domain.
When you add a custom domain to your Deno Deploy project, how does Deno Deploy manage HTTPS certificates for secure connections?
Consider how modern hosting platforms simplify HTTPS setup for custom domains.
Deno Deploy automatically handles HTTPS certificates using Let's Encrypt, so you don't need to manage them yourself.
