abc icon indicating copy to clipboard operation
abc copied to clipboard

how to deploy in DENO DEPLOY ?

Open bobwatcherx opened this issue 3 years ago • 1 comments

how to deploy this code to deno deploy

import { Application } from "https://deno.land/x/abc/mod.ts";

const app = new Application();

console.log("http://localhost:8080/");

app
  .get("/hello", (c) => {
    return "Hello, Abc!";
  })
  .post("/add",async(c)=>{
    let {name} = await c.body
    console.log(c.body)
    return "namanya = " + name
  })
  .start({ port: 8080 });

bobwatcherx avatar Dec 12 '21 01:12 bobwatcherx

Sorry, it's not supported yet, but I've been trying to find a path that fits better with Deno Deploy. I don't think it's a good idea for Abc (or any other framework of its type) to work with Deno Deploy (or any other deployment platform). So I will split a section of Abc into a separate file to support Deno Deploy. I believe this work will be completed soon (within two months)

zhmushan avatar Dec 13 '21 03:12 zhmushan