Skip to content

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:

vite.config.js
import houdini from 'houdini/vite'
import adapter from 'houdini-adapter-cloudflare'
/** @type {import('vite').UserConfig} */
const config = {
plugins: [houdini( { adapter } ), ... ]
}
export default config

Here is a list of the available adapters:

  • houdini-adapter-cloudflare: builds your application to run on Cloudflare Pages
  • houdini-adapter-static: builds your application to run as a single page application (no server bits). Keep in mind if you use this adapter, your +index file will be used to generate the static shell. This means that any special react components (error boundaries, etc) should be moved to the root +layout in order to preserve the behavior.
  • houdini-adapter-auto: tries to install the appropriate adapter for the current situation