Skip to content

Commit 5c6f5d6

Browse files
authored
1 parent d5e5762 commit 5c6f5d6

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/index.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
const { rm } = require('fs/promises')
2-
const { join } = require('path')
3-
41
const ensureNoCompetingPlugin = require('./helpers/ensureNoCompetingPlugin')
52
const fixOutputDir = require('./helpers/fixOutputDir')
63
const getAngularJson = require('./helpers/getAngularJson')
@@ -11,13 +8,6 @@ const validateAngularVersion = require('./helpers/validateAngularVersion')
118
let isValidAngularProject = true
129

1310
module.exports = {
14-
async onDev({ constants }) {
15-
// during local dev, the angular dev server will perform SSR,
16-
// and we won't have the server output to generate the edge function.
17-
// removing any edge function generated by a previous build ensures we don't try to use it.
18-
const edgeFunctionDir = join(constants.INTERNAL_EDGE_FUNCTIONS_SRC, 'angular-ssr')
19-
await rm(edgeFunctionDir, { recursive: true })
20-
},
2111
async onPreBuild({ netlifyConfig, utils, constants }) {
2212
const { failBuild, failPlugin } = utils.build
2313
const siteRoot = getAngularRoot({ failBuild, netlifyConfig })

0 commit comments

Comments
 (0)