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

next/image support back after internal functions dep work #158

Merged
merged 1 commit into from
Jan 26, 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: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ const nextOnNetlify = (options = {}) => {

setupPages({ functionsPath, publishPath });

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

setupRedirects(publishPath);

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

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