Open kkomelin opened 2 weeks ago
Reproduction demo is in progress. Will publish here shortly
I suspect you have an empty file somewhere. But I agree, we should improve the handling of that and/or print a more useful error.
Related to #65.
The reproduction:
Clone the reproduction repo:
git clone -b walrus-deploy https://github.com/kkomelin/sui-dapp-starter
cd sui-dapp-starter
Install the deps and run the deploy:
pnpm i
pnpm --filter frontend deploy:walrus
If it matters, I've got robots.txt
empty in the root. But it's intentional.
If it matters, I've got robots.txt empty in the root. But it's intentional.
That makes total sense. Walrus currently doesn't support empty files, so we either need to add support for that or handle it on the Walrus Sites side.
Until we have that, can you just add a comment line to that file as a workaround?
Yes, good idea. Will try now
Hooray! It works! https://suidappstarter.walrus.site/
Just in case you need to have some more info: Object ID: 0xe5e34c4fc294b5ac95984b1f9bd834a9365386df7478460ea6459526b4161596 Url: https://5q9p8r84khdpdia3dnsw0pkpk3rxa0ic2kqbdlstne8vu2t192.walrus.site/
Thank you very much for you help!
Thanks @kkomelin , this is a known "area of improvement" :)
That makes total sense. Walrus currently doesn't support empty files, so we either need to add support for that or handle it on the Walrus Sites side.
I would say for now the best fix would be to catch empty files in the site-builder
and print a message saying which are the empty files, and either to add something to them or remove them. The same could be done for unknown extensions.
Thanks @giac-mysten,
As for empty files, I agree with your solution.
As for .webmanifest
extension, it's just a JSON. Browsers just use the extension to set higher level mime type for it. So I would still insist on adding support for it by default if it's easy to do.
So I would still insist on adding support for it by default if it's easy to do.
of course! We just need to have a clear boundary of files/file types we support directly + a good fallback strategy, so that we don't end adding a new file type every day :)
But this will be surely fixed.
@giac-mysten Yeh, I understand. And it's important to collect more requests for this particular file extension from the community before implementing it.
When I try to publish my frontend app to Walrus Sites, I receive the following error: