Human-written demonstration (OpenAssistant volunteers)· OpenAssistant (human-written)
OpenAssistant Conversations (oasst2)
How do you redirect a root domain to a www. subdomain in Deno Deploy?
In OpenAssistant data, “assistant” turns were written by human volunteers as demonstrations. They are not model outputs.
- User
How do you redirect a root domain to a www. subdomain in Deno Deploy?
- Assistant
You can use the following code in your deployctl.ts file:
import { Application, Router } from "https://deno.land/x/oak/mod.ts"; const app = new Application(); const router = new Router(); // Redirect root domain to www subdomain router.get("/", (ctx) => { ctx.response.redirect("https://www.yourdomain.com"); }); // Handle requests to www subdomain router.get("/(.*)", (ctx) => { // your app logic here }); app.use(router.routes()); app.use(router.allowedMethods()); addEventListener("fetch", app.fetchEventHandler());
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Identical first prompt
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)