Kamran
Kamran
CDCloudflare Developers
Created by Kamran on 10/27/2023 in #pages-help
Can I access a relative path outside build root directory to other repo files?
Our repo looks like this:
<root>/
site/
src/
<other files and folders>
<root>/
site/
src/
<other files and folders>
We are using Docusaurus in the site folder, so I've set that as the "build root." However, we still need to access files in the <root_dir>/src directory (or other repo dirs), but it looks like the file paths aren't exactly what I expected during build.
/opt/buildhome/...
/opt/buildhome/...
I see a repo folder in the logs, but trying /opt/buildhome/repo/src/... and /opt/buildhome/src/... didn't work for me. It seems like repo folder actually is the subfolder (site), not the full repo but not sure. I'll keep playing with it unless someone can point me in the right direction.
3 replies
CDCloudflare Developers
Created by Kamran on 7/6/2023 in #pages-help
Are mTLS bindings supported on Pages Functions yet?
I have been using mTLS bindings on vanilla Workers successfully (thanks!) and I now have a Next.js app I was writing a Route Handler for, using the Edge Runtime mode. I was hoping to use an mTLS binding to do a fetch but browsing the docs, I didn't see mTLS bindings mentioned here: https://developers.cloudflare.com/pages/platform/functions/bindings/ I can solve this using a Service Binding and separating the deployment but was hoping mTLS bindings were available for Pages Functions too since that would simplify the code.
2 replies
CDCloudflare Developers
Created by Kamran on 3/22/2023 in #workers-help
mTLS fetch throwing `TypeError: Illegal invocation` when passed around
2 replies