Skip to content

Commit

Permalink
Fix searchParams
Browse files Browse the repository at this point in the history
  • Loading branch information
liquidx committed Nov 1, 2024
1 parent 3cdf06d commit 375bef4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/echo/+server.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ process.env.FONTCONFIG_PATH = '/var/task/.netlify/server/fonts';
const fontFamily = 'Roboto';

export const GET = async ({ url }) => {
let localPath = url.searchParams.path;
let localPath = url.searchParams.get('path');
if (!localPath) {
localPath = '/var/task/.netlify/server';
}
Expand Down

0 comments on commit 375bef4

Please sign in to comment.