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

Commit f76bae8

Browse files
revert next/image support until jimp module issue is resolved (#149)
1 parent 3a3ccc7 commit f76bae8

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Diff for: index.js

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

3333
setupPages({ functionsPath, publishPath });
3434

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

3738
setupRedirects(publishPath);
3839

Diff for: tests/defaults.test.js

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

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-
});
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+
// });
141142
});
142143

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

0 commit comments

Comments
 (0)