Skip to content

Commit 2b69f1f

Browse files
committed
foundation: embed NoN into plugin under src/
1 parent e6996e7 commit 2b69f1f

File tree

215 files changed

+24735
-7359
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

215 files changed

+24735
-7359
lines changed

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ __mocks__
2121
test/fixtures
2222
test/sample
2323
next.config.js
24+
src/cypress/builds/
25+
src/tests/builds/

index.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ const path = require('path')
33
const util = require('util')
44
const makeDir = require('make-dir')
55
const findUp = require('find-up')
6+
const nextOnNetlify = require('./src/index.js')
67

78
const validateNextUsage = require('./helpers/validateNextUsage')
89
const doesNotNeedPlugin = require('./helpers/doesNotNeedPlugin')
@@ -53,10 +54,6 @@ module.exports = {
5354

5455
await makeDir(PUBLISH_DIR)
5556

56-
// We cannot load `next-on-netlify` (which depends on `next`) at the
57-
// top-level because we validate whether the site is using `next`
58-
// inside `onPreBuild`.
59-
const nextOnNetlify = require('next-on-netlify')
6057
nextOnNetlify({ functionsDir: FUNCTIONS_SRC, publishDir: PUBLISH_DIR })
6158
},
6259
}

0 commit comments

Comments
 (0)