Skip to content

Commit

Permalink
feat!: add support for Edge Functions (#4550)
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardoboucas authored Apr 19, 2022
1 parent fbd4510 commit 59c3670
Show file tree
Hide file tree
Showing 57 changed files with 3,590 additions and 5,585 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:
uses: github/codeql-action/init@v1
with:
languages: 'javascript'
paths-ignore:
- '**/*.test.js'

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
4 changes: 4 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ jobs:
cache-dependency-path: 'npm-shrinkwrap.json'
check-latest: true
if: '${{!steps.release-check.outputs.IS_RELEASE}}'
- name: Setup Deno
uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- name: Install core dependencies
run: npm ci --no-audit
if: '${{!steps.release-check.outputs.IS_RELEASE}}'
Expand Down
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ See the [CLI command line reference](https://cli.netlify.com/commands/) to get s
- [lm](#lm)
- [login](#login)
- [open](#open)
- [recipes](#recipes)
- [sites](#sites)
- [status](#status)
- [switch](#switch)
Expand Down Expand Up @@ -123,7 +124,6 @@ Local dev server
| Subcommand | description |
|:--------------------------- |:-----|
| [`dev:exec`](/docs/commands/dev.md#devexec) | Exec command |
| [`dev:trace`](/docs/commands/dev.md#devtrace) | Trace command |


### [env](/docs/commands/env.md)
Expand Down Expand Up @@ -200,6 +200,15 @@ Open settings for the site linked to the current folder
| [`open:site`](/docs/commands/open.md#opensite) | Opens current site url in browser |


### [recipes](/docs/commands/recipes.md)

(Beta) Create and modify files in a project using pre-defined recipes

| Subcommand | description |
|:--------------------------- |:-----|
| [`recipes:list`](/docs/commands/recipes.md#recipeslist) | (Beta) List the recipes available to create and modify files in a project |


### [sites](/docs/commands/sites.md)

Handle various site operations
Expand Down
10 changes: 9 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ Local dev server
| Subcommand | description |
|:--------------------------- |:-----|
| [`dev:exec`](/docs/commands/dev.md#devexec) | Exec command |
| [`dev:trace`](/docs/commands/dev.md#devtrace) | Trace command |


### [env](/docs/commands/env.md)
Expand Down Expand Up @@ -157,6 +156,15 @@ Open settings for the site linked to the current folder
| [`open:site`](/docs/commands/open.md#opensite) | Opens current site url in browser |


### [recipes](/docs/commands/recipes.md)

(Beta) Create and modify files in a project using pre-defined recipes

| Subcommand | description |
|:--------------------------- |:-----|
| [`recipes:list`](/docs/commands/recipes.md#recipeslist) | (Beta) List the recipes available to create and modify files in a project |


### [sites](/docs/commands/sites.md)

Handle various site operations
Expand Down
36 changes: 0 additions & 36 deletions docs/commands/dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ netlify dev
| Subcommand | description |
|:--------------------------- |:-----|
| [`dev:exec`](/docs/commands/dev.md#devexec) | Exec command |
| [`dev:trace`](/docs/commands/dev.md#devtrace) | Trace command |


**Examples**
Expand Down Expand Up @@ -74,41 +73,6 @@ netlify dev:exec
netlify dev:exec npm run bootstrap
```

---
## `dev:trace`

Trace command

**Usage**

```bash
netlify dev:trace
```

**Arguments**

- url - Sets the request URL

**Flags**

- `cookie` (*string*) - Request cookie, this flag can be used multiple times. Example: "nf_jwt=token"
- `header` (*string*) - Request header, this flag can be used multiple times. Example: "Host: netlify.test"
- `request` (*string*) - Specifies a custom request method [default: GET]
- `watch` (*string*) - Path to the publish directory
- `debug` (*boolean*) - Print debugging information
- `httpProxy` (*string*) - Proxy server address to route requests through.
- `httpProxyCertificateFilename` (*string*) - Certificate file to use when connecting using a proxy server

**Examples**

```bash
netlify dev:trace http://localhost/routing-path
netlify dev:trace -w dist-directory http://localhost/routing-path
netlify dev:trace -X POST http://localhost/routing-path
netlify dev:trace -H "Accept-Language es" http://localhost/routing-path
netlify dev:trace --cookie nf_jwt=token http://localhost/routing-path
```

---

<!-- AUTO-GENERATED-CONTENT:END -->
10 changes: 9 additions & 1 deletion docs/commands/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ Local dev server
| Subcommand | description |
|:--------------------------- |:-----|
| [`dev:exec`](/docs/commands/dev.md#devexec) | Exec command |
| [`dev:trace`](/docs/commands/dev.md#devtrace) | Trace command |


### [env](/docs/commands/env.md)
Expand Down Expand Up @@ -138,6 +137,15 @@ Open settings for the site linked to the current folder
| [`open:site`](/docs/commands/open.md#opensite) | Opens current site url in browser |


### [recipes](/docs/commands/recipes.md)

(Beta) Create and modify files in a project using pre-defined recipes

| Subcommand | description |
|:--------------------------- |:-----|
| [`recipes:list`](/docs/commands/recipes.md#recipeslist) | (Beta) List the recipes available to create and modify files in a project |


### [sites](/docs/commands/sites.md)

Handle various site operations
Expand Down
Loading

1 comment on commit 59c3670

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📊 Benchmark results

Package size: 273 MB

Please sign in to comment.