Hello again,
Still can’t make edge functions work, it looks like the default “Angular SSR” function somehow blocks my custom edge functions.
I used an example from edge functions documentation, but it doesn’t redirect to the URL provided in the edge function.
Here is my edge function code:
import type { Config } from '@netlify/edge-functions';
export default async () => {
const joke = await fetch('https://icanhazdadjoke.com/', {
'headers': {
'Accept': 'application/json'
}
});
const jsonData = await joke.json();
return Response.json(jsonData);
};
export const config: Config = {
path: '/fetch-joke',
};
Could you please provide me with an example of how to configure my project to use custom edge functions along with the default one?
Thank you!