Preview and deploy @marko/run apps to Netlify Functions/Edge Functions
npm install @marko/run-adapter-netlify
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 })
})
]
});