On This Page

  1. Static Hosting
  2. Serverless

Netlify

Greenwood can be deployed to Netlify 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 connecting your repository and building your Greenwood project. You can apply any of your own build customizations through a netlify.toml or the Netlify UI.

[build]
  publish = "public/"
  command = "npm run build"

[build.processing]
  skip_processing = true

[build.environment]
  NODE_VERSION = "18.x"
}

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 { greenwoodPluginAdapterNetlify } from "@greenwood/plugin-adapter-netlify";

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