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