Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const site = require("./src/_data/site");
const coreNodeDoc = require("./lib/core-node-docs.js");
const yaml = require("js-yaml");
const eleventyNavigationPlugin = require("@11ty/eleventy-navigation");
const { EleventyEdgePlugin } = require("@11ty/eleventy");


// Skip slow optimizations when developing i.e. serve/watch or Netlify deploy preview
const DEV_MODE = process.env.ELEVENTY_RUN_MODE !== "build" || process.env.CONTEXT === "deploy-preview" || process.env.SKIP_IMAGES === 'true'
Expand Down Expand Up @@ -677,7 +677,7 @@ module.exports = function(eleventyConfig) {
eleventyConfig.addPlugin(codeClipboard)
eleventyConfig.addPlugin(pluginMermaid)
eleventyConfig.addPlugin(eleventyNavigationPlugin);
eleventyConfig.addPlugin(EleventyEdgePlugin);

eleventyConfig.addPlugin(pluginTOC, {
tags: ['h2', 'h3', 'h4'],
wrapper: 'div',
Expand Down Expand Up @@ -776,9 +776,7 @@ module.exports = function(eleventyConfig) {
conservativeCollapse: true,
preserveLineBreaks: true,
removeComments: true,
ignoreCustomComments: [
/ELEVENTYEDGE.*/
],

removeEmptyAttributes: true,
removeRedundantAttributes: true,
useShortDoctype: true,
Expand Down
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,5 @@ src/blueprints/*
# Local Netlify folder
.netlify

# Eleventy Edge Build Data files
netlify/edge-functions/_generated/

deno.lock
5 changes: 1 addition & 4 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,4 @@ package = "netlify-plugin-cache"
".cache" # Remote asset cache
]

[[edge_functions]]
function = "eleventy-edge"
path = "/*"
excludedPath = ["/*.css", "/*.png", "/*.jpg", "/*.svg", "/*.webmanifest", "/*.js", "/*.htm", "/*.html"]

192 changes: 0 additions & 192 deletions netlify/edge-functions/eleventy-edge.js

This file was deleted.

Loading
Loading