Skip to content

Commit 4b1eb65

Browse files
committed
chore: try add a netlify proxy
1 parent aebe3c2 commit 4b1eb65

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/release.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,17 @@ jobs:
152152
153153
- name: Handle Netlify redirect
154154
run: |
155-
echo "/* /index.html 200" > artifacts/website/_redirects
155+
echo "[[redirects]]
156+
from = \"/algod/*\"
157+
to = \"http://localhost:4001/:splat\"
158+
status = 200
159+
force = true
160+
headers = {X-Algo-Api-Token = \"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"}
161+
162+
[[redirects]]
163+
from = \"/*\"
164+
to = \"/index.html\"
165+
status = 200" > artifacts/website/netlify.toml
156166
157167
- name: Deploy website to Netlify
158168
run: |

0 commit comments

Comments
 (0)