For Workes & Pages, what is the name of the domain?
feat-internationalisation.asset-iq-2024.pages.dev
What is the issue or error you’re encountering
Functions no longer work. No documentation to resolve the issue.
What are the steps to reproduce the issue?
1 Build an Astro site
2 Write Cloudflare functions inside a ./functions directory
3 Observe deployed functions do work
4 Enable the Cloudflare Astro adapter
5 Deploy the site again
6 Observe functions no longer work
My configuration:
import { defineConfig, passthroughImageService } from "astro/config";
import cloudflare from '@astrojs/cloudflare';
import tailwind from "@astrojs/tailwind";
export default defineConfig({
output: 'server',
image: {
service: passthroughImageService()
},
adapter: cloudflare({
imageService: 'passthrough',
}),
});
Tried:
- Specifying
mode: 'server'
(it seems this has been removed) - Moving the functions into the /pages/ directory
- Multiple wrangler.toml file configurations