0.6.0 • Published 2 years ago

@presta/adapter-netlify v0.6.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@presta/adapter-netlify

Netlify deployment adapter plugin for Presta. It copies generated files to the paths specified in your local netlify.toml config, as well as handles rewriting URLs to Netlify functions paths e.g. /.netlify/functions.

Usage

Make sure you've got a netlify.toml config in your root directory. It should look something like this:

[build]
  command = 'npm run build'
  publish = 'build/static'
  functions = 'build/functions'

Then, update your Presta config:

import { createConfig } from 'presta'
import netlify from '@presta/adapter-netlify'

export default createConfig({
  plugins: [netlify()],
})

Bundle size limit

Netlify's default bundler sometimes outputs lambda ZIP archives that are over the 50MB limit imposed by AWS. To avoid this, you might want to try configuring Netlify to use esbuild as the bundler.

To do so, add this to your Netlify config:

[functions]
  node_bundler = 'esbuild'

License

MIT License © Front of House

0.6.0

2 years ago

0.5.2

2 years ago

0.3.0

2 years ago

0.5.0

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.5.1

2 years ago

0.4.2

2 years ago

0.2.6

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.2.1

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.0

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago