Closed prury closed 8 months ago
ASSIGNED - @daiagi 🔒 LOCKED -> Saturday, February 24th 2024, 05:28:46 UTC -> 36 hours
@kodadot/internal-dev
not quite sure what's going on here
the iframe src is sandbox.html?hash=<hash>
where sandbox.html is in public folder
this worked fine in local machine, and in pr preview environment, but when deployed, since sandbox is not in pages
dir, it is interpreted as wrong route and navigates back to home page.
navigating to other static assets however, works for example https://canary.kodadot.xyz/robots.txt works
I'm guessing it is something to do with netlify since it does work here
@Jarsen136 @preschian wdyt?
ASSIGNMENT EXPIRED - @daiagi has been unassigned.
one more artist
-> p2
@vikiival maybe any idea? I'm guessing something to do with netlify routing rules
Not a lot I can try since it works In local and preview environments
AFAIK: prod is built on cf and previews on netlify. Is there some difference in config ? Cc @preschian @yangwao
Another workaround, upload sandbox.html to ipfs, serve iframe to that ipfs
@preschian Intresting idea, worth a shot
what about this one? https://canary-netlify.kodadot.xyz/code-checker
what about this one? https://canary-netlify.kodadot.xyz/code-checker
This one works
Another workaround, upload sandbox.html to ipfs, serve iframe to that ipfs
tried. it doesn't work when passing hash url param
this works: https://ipfs.io/ipfs/bafkreicb3rwp6v2v66ct7w5xwqmvw3v5hu2hij6h6tx4qji6el5k7ovkhm
this doesn't
what about this one? https://canary-netlify.kodadot.xyz/code-checker
@preschian could you look into why it doesn't work on cf?
could you look into why it doesn't work on cf?
another workaround https://github.com/kodadot/workers/pull/258
I think the limitation is from nitro. I just tested the nuxt3 starter, and it doesn't work on cf-pages
from @daiagi: