groenroos
CDCloudflare Developers
•Created by groenroos on 11/12/2024 in #pages-help
Vite build fails with `EISDIR: illegal operation on a directory, read` - how to debug?
I have an Eleventy project, and I'm trying to integrate Vite to build the assets. The
npm run prod
build works perfectly on localhost
and on GitHub Actions. However, every single time it fails on Cloudflare Pages, with EISDIR: illegal operation on a directory, read
.
Apart from the specific OS, all three environments are the same. There's nothing obviously wrong or suspect on the page it complains about (e.g. src=""
or other). The path is definitely a file and not a directory.
Any ideas what could cause this? How would I go about debugging this, since the problem seems specific to Cloudflare Pages - I can't reproduce it on local, and since the errored build isn't deployed, saved, or downloadable, I can't inspect the file it complains about.
Thanks in advance!1 replies
CDCloudflare Developers
•Created by groenroos on 3/9/2024 in #pages-help
Serving SPA in subdirectory
I know you can serve a SPA (single-page application) in the root of the Pages deployment, if you don't have a
404.html
in the root (https://developers.cloudflare.com/pages/configuration/serving-pages/#single-page-application-spa-rendering).
However, I want to have normal page serving behaviour for the root and most of the site, but have SPA style page serving in a specific subdirectory (e.g. example.com/spa/
) - so that any request URL that begins with /spa/*
responds with /spa/index.html
without redirecting. How could I achieve this?6 replies
CDCloudflare Developers
•Created by groenroos on 2/7/2024 in #general-help
Which user role for Development Mode?
Which one of the user roles (https://developers.cloudflare.com/fundamentals/setup/manage-members/roles/) would grant access to turning Development Mode on and off? Is there a way to do it without granting full admin? I thought Cache Purge might include it, but it doesn't seem to.
1 replies
CDCloudflare Developers
•Created by groenroos on 3/26/2023 in #pages-help
Deploy Hooks with PubSubHubbub
Is there an easy way to use Deploy Hooks as a callback URL for PubSubHubbub (i.e. YouTube API push notifications; https://developers.google.com/youtube/v3/guides/push_notifications )? I don't really care about the notification content, I just want it to trigger a build. However, it currently fails the verification step, because I assume it checks the URL with a GET request, which returns a 405 Method Not Allowed.
2 replies