Skip to content

Commit

Permalink
chore: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Apr 29, 2022
1 parent 7b08e08 commit 279c823
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions netlify-edge/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/.netlify
10 changes: 10 additions & 0 deletions netlify-edge/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
experiment with netlify edge (https://github.com/hi-ogawa/ytsub-v3/issues/54)

```sh
# create new site
netlify sites:create --name ytsub-v3-edge-hiro18181
netlify link --name ytsub-v3-edge-hiro18181

# run server
netlify dev
```
3 changes: 3 additions & 0 deletions netlify-edge/netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[[edge_functions]]
path = "/test"
function = "hello"
3 changes: 3 additions & 0 deletions netlify-edge/netlify/edge-functions/hello.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function () {
return new Response("Hey");
}
1 change: 1 addition & 0 deletions netlify-edge/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}

0 comments on commit 279c823

Please sign in to comment.