On This Page

  1. Static Hosting
  2. Serverless

Vercel

Greenwood can be deployed to Vercel for either static hosting and / or serverless hosting. Just connect your git repository and you're done!

You can see a complete hybrid project example in our demonstration repo.

Static Hosting

For static hosting, nothing is needed other than just connecting your repository and building your Greenwood project. You can apply any of your own build customizations through a vercel.json or the Vercel UI.

{
  "outputDirectory": "./public",
  "buildCommand": "npm run build"
}

Serverless

For serverless hosting of SSR pages and API routes you can read about and install our adapter plugin and then add it to your greenwood.config.js.

import { greenwoodPluginAdapterVercel } from "@greenwood/plugin-adapter-vercel";

export default {
  plugins: [greenwoodPluginAdapterVercel()],
};