Skip to content
This repository has been archived by the owner on May 31, 2023. It is now read-only.

Commit

Permalink
Fix Node.js Example (#234)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesvclements committed May 24, 2023
1 parent f515258 commit 4fa9526
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/pages/docs/upgrading-to-3.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ Ensure all `plaiceholder` and `@plaiceholder/*` packages are set to at least `3.
import fs from "node:fs/promises";

const getImage = async (src: string) => {
const file = await fs.readFile(path.join("./public", src));
const buffer = await fs.readFile(file);
const buffer = await fs.readFile(path.join("./public", src));

const {
metadata: { height, width },
Expand Down

3 comments on commit 4fa9526

@vercel
Copy link

@vercel vercel bot commented on 4fa9526 May 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 4fa9526 May 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 4fa9526 May 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.