#Create an adapter from another adapter?

3 messages · Page 1 of 1 (latest)

ionic summit
#

Is it possible to create an adapter that is built on top of another one?

lapis charmBOT
#

Hi @ionic summit. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

The knowledge sources do not explicitly mention whether it is possible to create an Astro adapter that is built on top of another adapter. The documentation describes how to build an adapter as an integration, how to implement the required APIs, and how to configure features and entrypoints, but it does not provide guidance or examples for composing adapters or extending one adapter from another.

Adapters are integrations that must call setAdapter in the astro:config:done hook and provide their own server entrypoint and configuration. There is no mention of adapter inheritance, composition, or wrapping another adapter’s logic within your own adapter in the official documentation or guides provided Astro Adapter API Reference.

If you are considering this approach, you may need to experiment or consult the Astro community for best practices, as the official documentation does not cover this scenario.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: