Skip to content
This repository was archived by the owner on May 10, 2021. It is now read-only.

revert next/image support until jimp module issue is resolved #149

Merged
merged 1 commit into from
Jan 18, 2021
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
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ const nextOnNetlify = (options = {}) => {

setupPages({ functionsPath, publishPath });

setupImageFunction(functionsPath);
// TO-DO: put back when jimp module issue is resolved ;(
// setupImageFunction(functionsPath);

setupRedirects(publishPath);

Expand Down
7 changes: 4 additions & 3 deletions tests/defaults.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,10 @@ describe("API Pages", () => {
describe("next/image", () => {
const functionsDir = join(PROJECT_PATH, "out_functions");

test("sets up next_image as a function in every project by default", () => {
expect(existsSync(join(functionsDir, "next_image.js"))).toBe(true);
});
// TO-DO: put back when jump module issue is resolved ;(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

jump lul not changing

// test("sets up next_image as a function in every project by default", () => {
// expect(existsSync(join(functionsDir, "next_image.js"))).toBe(true);
// });
});

describe("SSG Pages with getStaticProps", () => {
Expand Down