3.0.0 • Published 5 months ago

@marko/run-adapter-netlify v3.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

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

Intallation

npm install @marko/run-adapter-netlify

Usage

For most applications, installing this adapter is all that is needed. Marko Run will automatically discover it and configure it to deploy to Netlify Functions.

Configuration

Netlify applications require a netlify.toml to configure it. This example is a starting point for Marko Run apps deployed to Netlify Functions.

[build]
  command = "marko-run build"
  publish = "dist/public"
  functions = "dist"

Edge Functions

This adapter can be configured to build for Netlify Edge Functions in the application's Vite config.

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 }),
    }),
  ],
});

The netlify.toml will also need to specify the edge edge_functions directory instead of functions.

[build]
  command = "marko-run build"
  publish = "dist/public"
  edge_functions = "dist"
1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago

3.0.0

5 months ago

2.0.1

6 months ago

2.0.0

6 months ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.9

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.0

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.3

3 years ago

0.0.1-beta4

3 years ago

0.0.1-beta3

3 years ago

0.0.1-beta2

3 years ago

0.0.1-beta1

3 years ago