Skip to content

Commit dc6cc0b

Browse files
committed
more shenanigans
1 parent 6b78e74 commit dc6cc0b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

now.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": 2,
44
"routes": [
55
{
6-
"src": "/api/gist",
6+
"src": "/gist",
77
"dest": "/api/gist.js",
88
"headers": {
99
"Access-Control-Allow-Origin": "*",
@@ -13,6 +13,10 @@
1313
{
1414
"src": "/download",
1515
"dest": "/api/download.js"
16+
},
17+
{
18+
"src": "/(.*)",
19+
"status": 404
1620
}
1721
],
1822
"env": {

src/state.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ const saveSpan = document.querySelector('#save-to-gist-output');
9191
document.querySelector('#save-to-gist')
9292
.addEventListener('click', () => {
9393
saveSpan.textContent = 'Saving...';
94-
state.then((s) => fetch('https://api.engine262.js.org/api/gist', {
94+
state.then((s) => fetch('https://api.engine262.js.org/gist', {
9595
method: 'POST',
9696
headers: {
9797
'Content-Type': 'application/json',

0 commit comments

Comments
 (0)