cloudflare-docs icon indicating copy to clipboard operation
cloudflare-docs copied to clipboard

[Pages] [WIP] Functions docs rewrite

Open WalshyDev opened this issue 3 years ago • 4 comments

Google doc: https://docs.google.com/document/d/1t1TPJxlLh0xsVJ_4UgtgkiIl3Jkm0mB6KST4Xj9VRpI/edit?usp=sharing

cc: @Cherry @nevikashah @Ekwuno

WalshyDev avatar Jul 02 '22 20:07 WalshyDev

Ok

fariborz4 avatar Jul 03 '22 03:07 fariborz4

️✅ There are no secrets present in this pull request anymore.

If these secrets were true positive and are still valid, we highly recommend you to revoke them. Once a secret has been leaked into a git repository, you should consider it compromised, even if it was deleted immediately. Find here more information about risks.


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

Our GitHub checks need improvements? Share your feedbacks!

gitguardian[bot] avatar Jul 16 '22 22:07 gitguardian[bot]

Functions seem to support importing assets:directory (or something similar), however there's no documentation for this. Can be found in source code at https://github.com/cloudflare/wrangler2/blob/main/packages/wrangler/src/pages/functions/buildPlugin.ts#L59-L94 (and also buildWorker.ts in the same folder

Skye-31 avatar Aug 07 '22 16:08 Skye-31

This is mentioned in the Pages Plugins docs very briefly: https://developers.cloudflare.com/pages/platform/functions/plugins/#include-static-assets-with-a-plugin-alpha

I'm not sure if it's intended to be used outside of that? 🤔

Cherry avatar Aug 07 '22 16:08 Cherry