diff --git a/.eleventy.js b/.eleventy.js index a6ab509..2d8e59b 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -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