Duosmium / duosmium

A Science Olympiad tournament results archive.
https://www.duosmium.org
MIT License
10 stars 8 forks source link

SciolyFF Previewer #11

Closed tctree333 closed 2 years ago

tctree333 commented 2 years ago

Closes #9

netlify[bot] commented 2 years ago

✔️ Deploy Preview for wonderful-noether-46a690 ready!

🔨 Explore the source changes: 61dc66b764e664bcba3f6e3d1c74772e7c43c002

🔍 Inspect the deploy log: https://app.netlify.com/sites/wonderful-noether-46a690/deploys/6233e2ecfa5d3a000875d43b

😎 Browse the preview: https://deploy-preview-11--wonderful-noether-46a690.netlify.app/preview

tctree333 commented 2 years ago

ok i have no idea why this isn't working, and I don't know if this is an issue with 11ty or Netlify or both or neither. It seems like for some reason POST requests aren't being accepted (I can't see any POST requests in the logs, only GET) and it returns a 405 Method Not Allowed which is different from the one I'm sending in the handler function (which should disallow gets, not POSTS). The dev server isn't working either since 11ty is rewriting all the requests to be GET in the httpMethod.

tctree333 commented 2 years ago

nvm i'm high, accidentally marked the new function as an on demand builder and didn't realize it

tctree333 commented 2 years ago

still doesn't work but at least it's a different issue

tctree333 commented 2 years ago

poggers

tctree333 commented 2 years ago

merging for now, no convert yet but i'm thinking we can add that later as another page.

it would be nice if we could go straight from google sheet to preview to download, maybe we could add https://stackoverflow.com/questions/33713084/ to convert and then either have it as a modal in the previewer or maybe in the iframe? (but it's not really an "output" so that might be weird with the toggle on small screens)