On This Page
Vercel
Greenwood can be deployed to Vercel (opens in a new window) for either static hosting and / or serverless hosting. Just connect your git repository (opens in a new window) and you're done!
You can see a complete hybrid project example in our demonstration repo (opens in a new window).
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 (opens in a new window) 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 (opens in a new window) and then add it to your greenwood.config.js.
import { greenwoodPluginAdapterVercel } from "@greenwood/plugin-adapter-vercel";
export default {
plugins: [greenwoodPluginAdapterVercel()],
};