diff --git a/src/index.js b/src/index.js index 148f3795..8985b628 100644 --- a/src/index.js +++ b/src/index.js @@ -1,6 +1,3 @@ -const { rm } = require('fs/promises') -const { join } = require('path') - const ensureNoCompetingPlugin = require('./helpers/ensureNoCompetingPlugin') const fixOutputDir = require('./helpers/fixOutputDir') const getAngularJson = require('./helpers/getAngularJson') @@ -11,13 +8,6 @@ const validateAngularVersion = require('./helpers/validateAngularVersion') let isValidAngularProject = true module.exports = { - async onDev({ constants }) { - // during local dev, the angular dev server will perform SSR, - // and we won't have the server output to generate the edge function. - // removing any edge function generated by a previous build ensures we don't try to use it. - const edgeFunctionDir = join(constants.INTERNAL_EDGE_FUNCTIONS_SRC, 'angular-ssr') - await rm(edgeFunctionDir, { recursive: true }) - }, async onPreBuild({ netlifyConfig, utils, constants }) { const { failBuild, failPlugin } = utils.build const siteRoot = getAngularRoot({ failBuild, netlifyConfig })