Closed Chriscbr closed 2 months ago
Thanks for opening this pull request! :tada: Please consult the contributing guidelines for details on how to contribute to this project. If you need any assistance, don't hesitate to ping the relevant owner over Discord.
Topic | Owner |
---|---|
Wing SDK and standard library | @chriscbr |
Wing Console | @skyrpex |
Wing compiler and language design | @chriscbr |
VSCode extension and language server | @chriscbr |
Wing CLI | @chriscbr |
Documentation | @boyney123 |
Examples | @boyney123 |
Wing Playground | @skyrpex |
Console preview environment is available at https://wing-console-pr-7143.fly.dev :rocket:
Congrats! :rocket: This was released in Wing 0.85.10.
Closes #4143
https://github.com/winglang/wing/pull/7137 added the main code structure for serving files through an express server when
cloud.Bucket
is locally simulated. However, existing code like thepublicUrl
method was still returning URLs to your file system instead of to the HTTP server. This fixes that bug.Fixing this enables other use cases, for example allowing a web app redirect the URL from the signed URL of a file they uploaded to the actual file (if the bucket is public).
Misc:
publicUrl
can only return URLs to existing files. I'm not sure this is a necessary requirement - the URL structure is effectively part of the contract ofcloud.Bucket
(for all public clouds), and checking if the key exists only hurts performance when apps are compiled to the cloud.Checklist
pr/e2e-full
label if this feature requires end-to-end testingBy submitting this pull request, I confirm that my contribution is made under the terms of the Wing Cloud Contribution License.