Deployment
Deployment of your application is handled by an “adapter” - a simple function that prepares your project for deployment. Adapters are passed to your application through the vite plugin:
import houdini from 'houdini/vite'import adapter from 'houdini-adapter-cloudflare'
/** @type {import('vite').UserConfig} */const config = { plugins: [houdini( { adapter } ), ... ]}
export default configHere is a list of the available adapters:
houdini-adapter-cloudflare: builds your application to run on Cloudflare Pageshoudini-adapter-static: builds your application to run as a single page application (no server bits). Keep in mind if you use this adapter, your+indexfile will be used to generate the static shell. This means that any special react components (error boundaries, etc) should be moved to the root+layoutin order to preserve the behavior.houdini-adapter-auto: tries to install the appropriate adapter for the current situation