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

Commit

Permalink
Merge pull request #81 from joe-bell/fix/misc
Browse files Browse the repository at this point in the history
Various Bug Fixes
  • Loading branch information
joe-bell committed May 22, 2021
2 parents 26ee408 + 8197da8 commit 5ace7d5
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
18 changes: 15 additions & 3 deletions docs/pages/plugins.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,21 @@ A tiny helper function to access `public` files in server-side functions or `get

### Installation

```sh
npm i @plaiceholder/next
```
1. Add the package:

```sh
npm i @plaiceholder/next
```

2. Add `sharp` to the top of your `next.config.js` to ensure it starts in the main thread:

```js
require("sharp");
module.exports = {
// your Next.js config
};
```

### Example

Expand Down
2 changes: 1 addition & 1 deletion examples/11ty/src/_includes/base.11ty.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ exports.render = function (data) {
${data.content.children}
<div style="max-width:100%;width:4032px">
<div style="position:relative;padding-bottom:75%">
<img alt="Keila Joa, Estonia." src="/assets/keila-joa@576px.jpg" style="color: transparent; visibility: visible; height: 100%; left: 0px; position: absolute; top: 0px; width: 100%;"/>
<img alt="Keila Joa, Estonia." src="/assets/keila-joa@578.jpg" style="color: transparent; visibility: visible; height: 100%; left: 0px; position: absolute; top: 0px; width: 100%;"/>
</div>
</div>
</a>`
Expand Down
3 changes: 3 additions & 0 deletions examples/next/next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
require("sharp");

module.exports = {};

3 comments on commit 5ace7d5

@vercel
Copy link

@vercel vercel bot commented on 5ace7d5 May 22, 2021

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 5ace7d5 May 22, 2021

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

plaiceholder-docs – ./docs

plaiceholder-docs-git-main-joebell.vercel.app
plaiceholder-docs-joebell.vercel.app
plaiceholder-docs.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 5ace7d5 May 22, 2021

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.