Skip to content

Commit c793cfc

Browse files
authoredJul 4, 2020
feat: save state as gist (#232)
1 parent b5f021b commit c793cfc

28 files changed

+11058
-2867
lines changed
 

‎.gitignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
.rts2_cache*
2-
.idea
32
.cache
43
.parcel-cache
54

65
dist/
76
node_modules/
8-
local/
97

108
# Local Netlify folder
119
.netlify
10+
.env

‎.proxyrc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"/api": {
3+
"target": "http://localhost:8888/"
4+
}
5+
}

‎_redirects

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
/oembed /.netlify/functions/oembed 200!
2-
/ /.netlify/functions/server 200!
3-
/* /.netlify/functions/server 200
1+
/oembed /.netlify/functions/oembed 200!
2+
/api/gist/* /.netlify/functions/gist 200!
3+
/ /.netlify/functions/server 200!
4+
/* /.netlify/functions/server 200

‎netlify.toml

+6
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,9 @@
22
command = "npm run build"
33
functions = "./dist/server"
44
publish = "./dist/client"
5+
6+
[dev]
7+
functions = "./src/lambda"
8+
9+
[template.environment]
10+
GITHUB_GIST_TOKEN = "set token that has gist access"

0 commit comments

Comments
 (0)
Please sign in to comment.