JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 23
  • Score
    100M100P100Q61694F
  • License MIT

Package Exports

  • @marko/run-adapter-netlify

Readme


@marko/run-adapter-netlify
TypeScript Styled with prettier

Adapter for @marko/run to deploy 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 })
    })
  ]
});