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

Commit 8360a5e

Browse files
next/image support back after internal functions dep work (#158)
1 parent 7bf10cd commit 8360a5e

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

Diff for: index.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ const nextOnNetlify = (options = {}) => {
3535

3636
setupPages({ functionsPath, publishPath });
3737

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

4140
setupRedirects(publishPath);
4241

Diff for: tests/defaults.test.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,9 @@ describe("API Pages", () => {
135135
describe("next/image", () => {
136136
const functionsDir = join(PROJECT_PATH, "out_functions");
137137

138-
// TO-DO: put back when jump module issue is resolved ;(
139-
// test("sets up next_image as a function in every project by default", () => {
140-
// expect(existsSync(join(functionsDir, "next_image.js"))).toBe(true);
141-
// });
138+
test("sets up next_image as a function in every project by default", () => {
139+
expect(existsSync(join(functionsDir, "next_image.js"))).toBe(true);
140+
});
142141
});
143142

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

0 commit comments

Comments
 (0)