Skip to content

Commit

Permalink
Workaround for 11ty/eleventy#2221
Browse files Browse the repository at this point in the history
  • Loading branch information
zachleat committed Feb 18, 2022
1 parent a67f57e commit e15671d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion netlify/functions/dynamic/index.js
Expand Up @@ -8,7 +8,7 @@ const precompiledCollections = require("./_generated-serverless-collections.json

async function handler(event) {
let elev = new EleventyServerless("dynamic", {
path: event.path,
path: new URL(event.rawUrl).pathname,
query: event.queryStringParameters,
inputDir: "src",
functionsDir: "./netlify/functions/",
Expand Down
2 changes: 1 addition & 1 deletion netlify/functions/serverless/index.js
Expand Up @@ -8,7 +8,7 @@ const precompiledCollections = require("./_generated-serverless-collections.json

async function handler (event) {
let elev = new EleventyServerless("serverless", {
path: event.path,
path: new URL(event.rawUrl).pathname,
query: event.queryStringParameters,
inputDir: "src",
functionsDir: "netlify/functions/",
Expand Down

0 comments on commit e15671d

Please sign in to comment.