-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
49 changed files
with
171 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,11 +12,11 @@ Deploy lets you listen for incoming HTTP requests using the same | |
level though, so instead of using this API directly we'll use the high level | ||
HTTP API exposed by [`std/http`][std-http]. | ||
|
||
This API revolves around the | ||
[`serve`](https://deno.land/[email protected]/http/server.ts) function. | ||
This API revolves around the [`serve`](https://deno.land/std/http/server.ts) | ||
function. | ||
|
||
```js | ||
import { serve } from "https://deno.land/std@0.140.0/http/server.ts"; | ||
import { serve } from "https://deno.land/std@$STD_VERSION/http/server.ts"; | ||
|
||
serve((_req) => {/* .. */}); | ||
``` | ||
|
@@ -34,7 +34,7 @@ underlying connection, such as the origin IP address. You must return a | |
Let's use this information to finish our hello world script: | ||
|
||
```js | ||
import { serve } from "https://deno.land/std@0.140.0/http/server.ts"; | ||
import { serve } from "https://deno.land/std@$STD_VERSION/http/server.ts"; | ||
|
||
serve((_req) => { | ||
return new Response("Hello World!", { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,7 +90,7 @@ left navigation menu, and press "Open Playground". Let's start by the `std/http` | |
module so we can start serving HTTP requests: | ||
|
||
```ts | ||
import { serve } from "https://deno.land/std@0.140.0/http/server.ts"; | ||
import { serve } from "https://deno.land/std@$STD_VERSION/http/server.ts"; | ||
|
||
serve(async (req) => { | ||
return new Response("Not Found", { status: 404 }); | ||
|
@@ -105,7 +105,7 @@ Next, let's import the Postgres module, read the connection string from the | |
environment variables, and create a connection pool. | ||
|
||
```ts | ||
import { serve } from "https://deno.land/std@0.140.0/http/server.ts"; | ||
import { serve } from "https://deno.land/std@$STD_VERSION/http/server.ts"; | ||
import * as postgres from "https://deno.land/x/[email protected]/mod.ts"; | ||
|
||
// Get the connection string from the environment variable "DATABASE_URL" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ Then we will stringify the modified CSS AST and output it to the console: | |
|
||
```ts, ignore | ||
import * as css from "https://esm.sh/[email protected]"; | ||
import { assert } from "https://deno.land/std/assert/mod.ts"; | ||
import { assert } from "https://deno.land/std@$STD_VERSION/assert/mod.ts"; | ||
declare global { | ||
interface AbortSignal { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -224,7 +224,7 @@ for Deno, to run a GraphQL API server in Deno. | |
#### Run a GraphQL API server with gql | ||
|
||
```ts, ignore | ||
import { Server } from "https://deno.land/std/http/server.ts"; | ||
import { Server } from "https://deno.land/std@$STD_VERSION/http/server.ts"; | ||
import { GraphQLHTTP } from "https://deno.land/x/gql/mod.ts"; | ||
import { makeExecutableSchema } from "https://deno.land/x/[email protected]/mod.ts"; | ||
import { gql } from "https://deno.land/x/[email protected]/mod.ts"; | ||
|
Oops, something went wrong.