Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 1.01 KB

README.md

File metadata and controls

40 lines (30 loc) · 1.01 KB

Marko Run Logo
@marko/run-adapter-netlify

Preview and deploy @marko/run apps to Netlify Functions/Edge Functions

Intallation

npm install @marko/run-adapter-netlify

Usage

In your application's Vite config file (eg. vite.config.js), import and register this adapter with the @marko/run Vite plugin:

import { defineConfig } from "vite";
import marko from "@marko/run/vite";
import netlifyAdapter from "@marko/run-adapter-netlify";

export default defineConfig({
  plugins: [
    marko({
      adapter: netlifyAdapter({ edge: true })
    })
  ]
});