Is it possible to customize functions folder?

Hi, I'd like to rename the functions, is it possible?
6 Replies
Chaika
Chaika13mo ago
You mean rename the functions folder to something else and have Pages still use it to deploy functions? No, what exactly are you trying to do?
razonyang
razonyangOP13mo ago
Yep, that's what I want. I'm trying to separate the functions to different repo, and reuse it in multiple static sites (Hugo), but currently Hugo module not allows mounting the functions folder, so I'm wondering if it is reasonable to customize the functions folder, so that I can mount via Hugo modules with another allowed folder. Although I think I can use Git submodule to achieve this, it would be more easier if CFP functions folder can be customized. Would this be considered as a feature request?
Erisa
Erisa13mo ago
It would be a feature request yes
JustinNoel
JustinNoel13mo ago
Perhaps use something like wml
JustinNoel
JustinNoel13mo ago
GitHub
GitHub - wix-incubator/wml: An alternative to symlinks that actuall...
An alternative to symlinks that actually copies changed files from source to destination folders - GitHub - wix-incubator/wml: An alternative to symlinks that actually copies changed files from sou...
JustinNoel
JustinNoel13mo ago
In your Pages project, you could use wml to "link" the functions folder to wherever you're actually storing these functions.
Want results from more Discord servers?
Add your server