Skip to content

adobe/aem-edge-functions-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

AEM Edge Functions examples

This repository collects standalone JavaScript examples for AEM Edge Functions—patterns that work well with Adobe Experience Manager. Each example lives entirely under examples/<name>/ (source, configuration, package.json, Makefile, and tests) so you can copy, adapt, or deploy it without pulling in unrelated code.

Official product overview, setup, build, deploy, and local development are covered in the AEM Edge Functions documentation.

Repository layout

Path Role
examples/*/ Individual edge function examples and their documentation
Makefile Install dependencies and run tests across all examples

Examples

Example Description
edge-delivery-transformer Fetches Edge Delivery HTML and composes header/footer fragments; demonstrates routing, upstream fetch, and response shaping.
publish-delivery-transformer Fetches AEMaaCS publish HTML via a CDN loopback, transforms it at the edge, and returns the result; demonstrates the loopback pattern with x-edgefunction-request loop prevention.
publish-delivery-redirect-maps Serves large-scale URL redirect maps at the edge for AEMaaCS publish; demonstrates KV-sharded lookups and a maintenance endpoint, with the loopback pattern for redirect misses.

Local checks

From the repository root:

make install-examples   # npm ci in each example that has a Makefile
make test               # run tests in every example

Use Node.js as required by your toolchain (see the workflow for a version used in CI). For build, deploy, and local serving, follow the AEM Edge Functions guide and the README inside each example.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors