Move EleventyServerlessBundlerPlugin to top

This commit is contained in:
Sam Carlton 2021-07-24 13:48:18 -05:00
parent 6598633a4a
commit 93db24e5a3

View file

@ -51,6 +51,11 @@ const appBundles = new Map()
module.exports = function ( eleventyConfig ) {
// console.log('eleventyConfig', eleventyConfig)
eleventyConfig.addPlugin(EleventyServerlessBundlerPlugin, {
name: "eleventy-builder", // The serverless function name from your permalink object
functionsDir: "./netlify/functions/",
})
// Global Nuxt data
eleventyConfig.addJavaScriptFunction('getNuxt', function () {
return nuxtConfig
@ -176,12 +181,6 @@ module.exports = function ( eleventyConfig ) {
})
eleventyConfig.addPlugin(EleventyServerlessBundlerPlugin, {
name: "eleventy-builder", // The serverless function name from your permalink object
functionsDir: "./netlify/functions/",
})
return {
// https://www.11ty.dev/docs/config/#template-formats
// Default: html,liquid,ejs,md,hbs,mustache,haml,pug,njk,11ty.js