@marko/run-adapter-netlify
v0.1.9
Published
Preview and deploy @marko/run apps to Netlify Functions/Edge Functions
Downloads
32
Keywords
Readme
Preview and deploy @marko/run apps to Netlify Functions/Edge Functions
Intallation
npm install @marko/run-adapter-static
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 })
})
]
});