15 | >
16 | );
17 | }
18 |
--------------------------------------------------------------------------------
/copy.client.ts:
--------------------------------------------------------------------------------
1 | document.addEventListener("click", (event) => {
2 | const btn = (event.target as HTMLElement).closest("button[data-copy]");
3 |
4 | if (!btn) {
5 | return;
6 | }
7 |
8 | let textToCopy = btn.getAttribute("data-copy") as string;
9 |
10 | // CLEAN COMMANDS: Remove leading spaces, $, and > from each line
11 | textToCopy = textToCopy.replace(/^[\$>\s]+/, "");
12 |
13 | navigator?.clipboard?.writeText(textToCopy).then(() => {
14 | if (!btn) {
15 | return;
16 | }
17 |
18 | const copyIcon = btn.querySelector(".copy-icon");
19 | const checkIcon = btn.querySelector(".check-icon");
20 |
21 | if (copyIcon && checkIcon) {
22 | copyIcon.classList.add("hidden");
23 | checkIcon.classList.remove("hidden");
24 |
25 | setTimeout(() => {
26 | copyIcon.classList.remove("hidden");
27 | checkIcon.classList.add("hidden");
28 | }, 2000);
29 | }
30 | });
31 | });
32 |
--------------------------------------------------------------------------------
/deploy/docs-images/add_custom_domain.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/denoland/docs/b596f0d4ccbd8b3c91bf78cffbe062fa9db26a58/deploy/docs-images/add_custom_domain.png
--------------------------------------------------------------------------------
/deploy/docs-images/blank_project.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/denoland/docs/b596f0d4ccbd8b3c91bf78cffbe062fa9db26a58/deploy/docs-images/blank_project.png
--------------------------------------------------------------------------------
/deploy/docs-images/change_dns_records.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/denoland/docs/b596f0d4ccbd8b3c91bf78cffbe062fa9db26a58/deploy/docs-images/change_dns_records.png
--------------------------------------------------------------------------------
/deploy/docs-images/discord-slash-command.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/denoland/docs/b596f0d4ccbd8b3c91bf78cffbe062fa9db26a58/deploy/docs-images/discord-slash-command.png
--------------------------------------------------------------------------------
/deploy/docs-images/dns_records_modal.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/denoland/docs/b596f0d4ccbd8b3c91bf78cffbe062fa9db26a58/deploy/docs-images/dns_records_modal.png
--------------------------------------------------------------------------------
/deploy/docs-images/fauna1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/denoland/docs/b596f0d4ccbd8b3c91bf78cffbe062fa9db26a58/deploy/docs-images/fauna1.png
--------------------------------------------------------------------------------
/deploy/docs-images/fauna2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/denoland/docs/b596f0d4ccbd8b3c91bf78cffbe062fa9db26a58/deploy/docs-images/fauna2.png
--------------------------------------------------------------------------------
/deploy/docs-images/get_certificates.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/denoland/docs/b596f0d4ccbd8b3c91bf78cffbe062fa9db26a58/deploy/docs-images/get_certificates.png
--------------------------------------------------------------------------------
/deploy/docs-images/green_check.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/denoland/docs/b596f0d4ccbd8b3c91bf78cffbe062fa9db26a58/deploy/docs-images/green_check.png
--------------------------------------------------------------------------------
/deploy/docs-images/neon_postgres_env_variable.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/denoland/docs/b596f0d4ccbd8b3c91bf78cffbe062fa9db26a58/deploy/docs-images/neon_postgres_env_variable.png
--------------------------------------------------------------------------------
/deploy/docs-images/new_github_repo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/denoland/docs/b596f0d4ccbd8b3c91bf78cffbe062fa9db26a58/deploy/docs-images/new_github_repo.png
--------------------------------------------------------------------------------
/deploy/docs-images/organizations.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/denoland/docs/b596f0d4ccbd8b3c91bf78cffbe062fa9db26a58/deploy/docs-images/organizations.png
--------------------------------------------------------------------------------
/deploy/docs-images/postgres_env_variable.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/denoland/docs/b596f0d4ccbd8b3c91bf78cffbe062fa9db26a58/deploy/docs-images/postgres_env_variable.png
--------------------------------------------------------------------------------
/deploy/docs-images/preview_deployment.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/denoland/docs/b596f0d4ccbd8b3c91bf78cffbe062fa9db26a58/deploy/docs-images/preview_deployment.png
--------------------------------------------------------------------------------
/deploy/docs-images/project_name.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/denoland/docs/b596f0d4ccbd8b3c91bf78cffbe062fa9db26a58/deploy/docs-images/project_name.png
--------------------------------------------------------------------------------
/deploy/docs-images/promote_to_production.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/denoland/docs/b596f0d4ccbd8b3c91bf78cffbe062fa9db26a58/deploy/docs-images/promote_to_production.png
--------------------------------------------------------------------------------
/deploy/docs-images/proxy_to_example.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/denoland/docs/b596f0d4ccbd8b3c91bf78cffbe062fa9db26a58/deploy/docs-images/proxy_to_example.png
--------------------------------------------------------------------------------
/deploy/docs-images/vite-branch.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/denoland/docs/b596f0d4ccbd8b3c91bf78cffbe062fa9db26a58/deploy/docs-images/vite-branch.png
--------------------------------------------------------------------------------
/deploy/docs-images/vite-deploy-yaml.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/denoland/docs/b596f0d4ccbd8b3c91bf78cffbe062fa9db26a58/deploy/docs-images/vite-deploy-yaml.png
--------------------------------------------------------------------------------
/deploy/docs-images/vite-link.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/denoland/docs/b596f0d4ccbd8b3c91bf78cffbe062fa9db26a58/deploy/docs-images/vite-link.png
--------------------------------------------------------------------------------
/deploy/docs-images/vite-ok.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/denoland/docs/b596f0d4ccbd8b3c91bf78cffbe062fa9db26a58/deploy/docs-images/vite-ok.png
--------------------------------------------------------------------------------
/deploy/docs-images/vite-project.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/denoland/docs/b596f0d4ccbd8b3c91bf78cffbe062fa9db26a58/deploy/docs-images/vite-project.png
--------------------------------------------------------------------------------
/deploy/early-access/images/app_config.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/denoland/docs/b596f0d4ccbd8b3c91bf78cffbe062fa9db26a58/deploy/early-access/images/app_config.png
--------------------------------------------------------------------------------
/deploy/early-access/images/build_config.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/denoland/docs/b596f0d4ccbd8b3c91bf78cffbe062fa9db26a58/deploy/early-access/images/build_config.png
--------------------------------------------------------------------------------
/deploy/early-access/images/build_logs.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/denoland/docs/b596f0d4ccbd8b3c91bf78cffbe062fa9db26a58/deploy/early-access/images/build_logs.png
--------------------------------------------------------------------------------
/deploy/early-access/images/create_app.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/denoland/docs/b596f0d4ccbd8b3c91bf78cffbe062fa9db26a58/deploy/early-access/images/create_app.png
--------------------------------------------------------------------------------
/deploy/early-access/images/create_org.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/denoland/docs/b596f0d4ccbd8b3c91bf78cffbe062fa9db26a58/deploy/early-access/images/create_org.png
--------------------------------------------------------------------------------
/deploy/early-access/images/env_var.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/denoland/docs/b596f0d4ccbd8b3c91bf78cffbe062fa9db26a58/deploy/early-access/images/env_var.png
--------------------------------------------------------------------------------
/deploy/early-access/images/logs.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/denoland/docs/b596f0d4ccbd8b3c91bf78cffbe062fa9db26a58/deploy/early-access/images/logs.png
--------------------------------------------------------------------------------
/deploy/early-access/images/select_org.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/denoland/docs/b596f0d4ccbd8b3c91bf78cffbe062fa9db26a58/deploy/early-access/images/select_org.png
--------------------------------------------------------------------------------
/deploy/early-access/images/trace.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/denoland/docs/b596f0d4ccbd8b3c91bf78cffbe062fa9db26a58/deploy/early-access/images/trace.png
--------------------------------------------------------------------------------
/deploy/early-access/images/traces.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/denoland/docs/b596f0d4ccbd8b3c91bf78cffbe062fa9db26a58/deploy/early-access/images/traces.png
--------------------------------------------------------------------------------
/deploy/early-access/support/index.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: Support and Feedback
3 | ---
4 |
5 | :::info
6 |
7 | You are viewing the documentation for Deno DeployEA. Looking for
8 | Deploy Classic documentation? [View it here](/deploy/).
9 |
10 | :::
11 |
12 | If you have any questions or feedback about Deno Deploy Early Access, please
13 | reach out to us on the [Deno Discord](https://discord.gg/deno) in the
14 | `#deploy-ea` channel or [contact us](mailto:deploy@deno.com).
15 |
16 | We are actively working on improving the platform and would love to hear your
17 | thoughts!
18 |
--------------------------------------------------------------------------------
/deploy/index.md:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/denoland/docs/b596f0d4ccbd8b3c91bf78cffbe062fa9db26a58/deploy/index.md
--------------------------------------------------------------------------------
/deploy/kv/manual/_admonition.tsx:
--------------------------------------------------------------------------------
1 | export function Admonition({ type, children }) {
2 | return
TODO
;
3 | }
4 |
5 | // :::caution Deno KV is currently in beta
6 |
7 | // Deno KV and related cloud primitive APIs like queues and cron are currently
8 | // **experimental** and **subject to change**. While we do our best to ensure data
9 | // durability, data loss is possible, especially around Deno updates.
10 |
11 | // Deno programs that use KV require the `--unstable` flag when launching the
12 | // program, as shown below:
13 |
14 | // ```sh
15 | // deno run -A --unstable my_kv_code.ts
16 | // ```
17 |
18 | // :::
19 |
--------------------------------------------------------------------------------
/deploy/kv/manual/images/backup-add-bucket-to-dash.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/denoland/docs/b596f0d4ccbd8b3c91bf78cffbe062fa9db26a58/deploy/kv/manual/images/backup-add-bucket-to-dash.png
--------------------------------------------------------------------------------
/deploy/kv/manual/images/backup-bucket-create.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/denoland/docs/b596f0d4ccbd8b3c91bf78cffbe062fa9db26a58/deploy/kv/manual/images/backup-bucket-create.png
--------------------------------------------------------------------------------
/deploy/kv/manual/images/backup-gcs-bucket-create.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/denoland/docs/b596f0d4ccbd8b3c91bf78cffbe062fa9db26a58/deploy/kv/manual/images/backup-gcs-bucket-create.png
--------------------------------------------------------------------------------
/deploy/kv/manual/images/backup-gcs-create-hmac.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/denoland/docs/b596f0d4ccbd8b3c91bf78cffbe062fa9db26a58/deploy/kv/manual/images/backup-gcs-create-hmac.png
--------------------------------------------------------------------------------
/deploy/kv/manual/images/backup-gcs-grant.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/denoland/docs/b596f0d4ccbd8b3c91bf78cffbe062fa9db26a58/deploy/kv/manual/images/backup-gcs-grant.png
--------------------------------------------------------------------------------
/deploy/kv/manual/images/cron-tasks.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/denoland/docs/b596f0d4ccbd8b3c91bf78cffbe062fa9db26a58/deploy/kv/manual/images/cron-tasks.png
--------------------------------------------------------------------------------
/deploy/kv/manual/images/kv-connect.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/denoland/docs/b596f0d4ccbd8b3c91bf78cffbe062fa9db26a58/deploy/kv/manual/images/kv-connect.png
--------------------------------------------------------------------------------
/deploy/kv/tutorials/images/github_webhook.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/denoland/docs/b596f0d4ccbd8b3c91bf78cffbe062fa9db26a58/deploy/kv/tutorials/images/github_webhook.png
--------------------------------------------------------------------------------
/deploy/manual/how-to-deploy.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: "Deploy with GitHub integration"
3 | ---
4 |
5 | The simplest way to deploy more complex projects is via our Github integration.
6 | This allows you to link a Deno Deploy project to a GitHub repository. Every time
7 | you push to the repository, your changes will be automatically deployed.
8 |
9 | Via the Github integration, you can add a Github Action that defines a build
10 | step in your deployment process.
11 |
12 | See [the Github integration page](ci_github) for more details.
13 |
14 | ### Deploy from command line with [`deployctl`](./deployctl.md)
15 |
16 | `deployctl` is a command line tool for deploying your code to Deno Deploy. You
17 | can control more details of your deployment than the above automatic GitHub
18 | integration by using `deployctl`.
19 |
20 | See [the `deployctl` page](./deployctl.md) for more details.
21 |
22 | ### Deploy with playground
23 |
24 | The easiest way to deploy some code is via a Deno Deploy playground.
25 |
26 | See the [playground page](playgrounds) for more details.
27 |
--------------------------------------------------------------------------------
/deploy/manual/images/deploy_onboarding.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/denoland/docs/b596f0d4ccbd8b3c91bf78cffbe062fa9db26a58/deploy/manual/images/deploy_onboarding.png
--------------------------------------------------------------------------------
/deploy/manual/images/deployctl-deployments-list.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/denoland/docs/b596f0d4ccbd8b3c91bf78cffbe062fa9db26a58/deploy/manual/images/deployctl-deployments-list.png
--------------------------------------------------------------------------------
/deploy/manual/images/deployctl-deployments-show.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/denoland/docs/b596f0d4ccbd8b3c91bf78cffbe062fa9db26a58/deploy/manual/images/deployctl-deployments-show.png
--------------------------------------------------------------------------------
/deploy/manual/images/project_deployments.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/denoland/docs/b596f0d4ccbd8b3c91bf78cffbe062fa9db26a58/deploy/manual/images/project_deployments.png
--------------------------------------------------------------------------------
/deploy/manual/regions.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: "Regions"
3 | ---
4 |
5 | Deno Deploy deploys your code throughout the world. Each new request is served
6 | from the closest region to your user. Deploy is presently located in the
7 | following regions:
8 |
9 | - Singapore (`asia-southeast1`)
10 | - London (`europe-west2`)
11 | - Frankfurt (`europe-west3`)
12 | - Sao Paolo (`southamerica-east1`)
13 | - North Virginia (`us-east4`)
14 | - California (`us-west2`)
15 |
16 | This list will be maintained to reflect the latest summary of our regions.
17 |
18 | Code is deployed to all regions and is served from the region closest to the end
19 | user to minimize latency. It is not currently possible to restrict the regions
20 | in which your code is deployed.
21 |
--------------------------------------------------------------------------------
/deploy/manual/running-scripts-locally.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: "Local development"
3 | ---
4 |
5 | For local development you can use the `deno` CLI. To install `deno`, follow the
6 | instructions in the
7 | [Deno manual](https://deno.land/manual/getting_started/installation).
8 |
9 | After installation, you can run your scripts locally:
10 |
11 | ```shell
12 | $ deno run --allow-net=:8000 https://deno.com/examples/hello.js
13 | Listening on http://localhost:8000
14 | ```
15 |
16 | To watch for file changes add the `--watch` flag:
17 |
18 | ```shell
19 | $ deno run --allow-net=:8000 --watch ./main.js
20 | Listening on http://localhost:8000
21 | ```
22 |
23 | For more information about the Deno CLI, and how to configure your development
24 | environment and IDE, visit the Deno Manual's [Getting Started][manual-gs]
25 | section.
26 |
27 | [manual-gs]: https://deno.land/manual/getting_started
28 |
--------------------------------------------------------------------------------
/deploy/tutorials/images/simple_api_dashboard.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/denoland/docs/b596f0d4ccbd8b3c91bf78cffbe062fa9db26a58/deploy/tutorials/images/simple_api_dashboard.png
--------------------------------------------------------------------------------
/deploy/tutorials/images/simple_api_deploy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/denoland/docs/b596f0d4ccbd8b3c91bf78cffbe062fa9db26a58/deploy/tutorials/images/simple_api_deploy.png
--------------------------------------------------------------------------------
/deploy/tutorials/images/simple_api_deploy_settings.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/denoland/docs/b596f0d4ccbd8b3c91bf78cffbe062fa9db26a58/deploy/tutorials/images/simple_api_deploy_settings.png
--------------------------------------------------------------------------------
/deploy/tutorials/index.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: "Tutorials"
3 | sidebar_title: "Overview"
4 | pagination_next: /deploy/tutorials/tutorial-http-server
5 | ---
6 |
7 | Here, you'll find a collection of tutorials and example applications for Deno
8 | Deploy. Check our ever expanding list of tutorials in the nav, and explore
9 | [examples.deno.land](https://examples.deno.land) for even more.
10 |
11 | ## Code examples
12 |
13 | - [Build a simple API server](./simple-api.md)
14 | - [Serve static assets](./static-site.md)
15 |
16 | ## App building tutorials
17 |
18 | - [Build a Fresh app](./fresh.md)
19 | - [Build a Discord slash command](./discord-slash.md)
20 | - [Build a site with Vite](./vite.md)
21 |
--------------------------------------------------------------------------------
/deploy/tutorials/tutorial-blog-fresh.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: "Build a blog with Fresh"
3 | oldUrl:
4 | - /deploy/docs/tutorial-blog-fresh/
5 | ---
6 |
7 | Tutorial [here](https://deno.com/blog/build-a-blog-with-fresh).
8 |
--------------------------------------------------------------------------------
/deploy/tutorials/tutorial-hugo-blog.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: "Build a blog with Hugo"
3 | oldUrl:
4 | - /deploy/docs/tutorial-hugo-blog/
5 | ---
6 |
7 | Tutorial [here](https://deno.com/blog/hugo-blog-with-deno-deploy).
8 |
--------------------------------------------------------------------------------
/examples/_components/CopyButton.tsx:
--------------------------------------------------------------------------------
1 | export function CopyButton(props: { text: string }) {
2 | return (
3 |
18 | );
19 | }
20 |
--------------------------------------------------------------------------------
/examples/_components/ExampleIcon.tsx:
--------------------------------------------------------------------------------
1 | export function ExampleIcon() {
2 | return (
3 |
17 | );
18 | }
19 |
--------------------------------------------------------------------------------
/examples/_components/TutorialIcon.tsx:
--------------------------------------------------------------------------------
1 | export function TutorialIcon() {
2 | return (
3 |
25 | );
26 | }
27 |
--------------------------------------------------------------------------------
/examples/_pages/VideoPage.tsx:
--------------------------------------------------------------------------------
1 | import { EmbedVideo } from "../_components/EmbedVideo.tsx";
2 | import { VideoReference } from "../types.ts";
3 |
4 | type Props = { video: VideoReference };
5 |
6 | export default function VideoPage({ video }: Props) {
7 | return (
8 | <>
9 |
10 |