deploy_feedback icon indicating copy to clipboard operation
deploy_feedback copied to clipboard

Deploy to Deno button

Open tchief opened this issue 3 years ago • 1 comments

Is there a button similar to Deploy to Heroku or Deploy to Vercel?

Noticed in docs example, which doesn't work:

https://dash.deno.com/new?url=https://deno.com/examples/hello_discord.ts&env=DISCORD_PUBLIC_KEY

And one more here: Deploy this example

Would be happy to contribute here, but can't find an appropriate repository (it seems to be private).

tchief avatar Jul 26 '22 20:07 tchief

cc @satyarohith, as author/reviewer of that example

tchief avatar Jul 26 '22 20:07 tchief

@tchief I mentioned this on their Discord channel and it have been fixed.

dcdunkan avatar Aug 03 '22 09:08 dcdunkan

Yes, we fixed the issue. Thanks!

satyarohith avatar Aug 03 '22 09:08 satyarohith

Thanks, @satyarohith! Was about to roll out simple service for this.

Is this correct, that

  1. url is a required param, i.e. Dash do not try to resolve it from referer.
  2. url could not point to a github repo, only file (js, jsx, ts, tsx).
  3. url should point to a file, without relative file imports, like import { handler } from "./utils.ts";

Tried to test these, but seems these are not supported. Should I create 3 (or 1) separate issues for ones, which you might plan to support?

tchief avatar Aug 03 '22 16:08 tchief

@tchief afaik,

  1. url must point to a file with one of the supported file formats.
  2. It can contain relative imports.

dcdunkan avatar Aug 04 '22 12:08 dcdunkan