cloudflare-docs
                                
                                 cloudflare-docs copied to clipboard
                                
                                    cloudflare-docs copied to clipboard
                            
                            
                            
                        [Pages] [WIP] Functions docs rewrite
Google doc: https://docs.google.com/document/d/1t1TPJxlLh0xsVJ_4UgtgkiIl3Jkm0mB6KST4Xj9VRpI/edit?usp=sharing
cc: @Cherry @nevikashah @Ekwuno
Ok
️✅ 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!
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
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? 🤔