Is it possible to customize functions folder?

Hi, I'd like to rename the functions, is it possible?
6 Replies
Chaika
Chaika6mo 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
razonyang6mo 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
Erisa6mo ago
It would be a feature request yes
JustinNoel
JustinNoel6mo ago
Perhaps use something like wml
JustinNoel
JustinNoel6mo 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
JustinNoel6mo ago
In your Pages project, you could use wml to "link" the functions folder to wherever you're actually storing these functions.