Is it possible to customize functions folder?

Hi, I'd like to rename the functions, is it possible?
6 Replies
Chaika
Chaika12mo 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
razonyangOP12mo 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
Erisa12mo ago
It would be a feature request yes
JustinNoel
JustinNoel12mo ago
Perhaps use something like wml
JustinNoel
JustinNoel12mo 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
JustinNoel12mo 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