From 7a1c3f4d3ecaa133a6f38239a9fe1c86021a2e84 Mon Sep 17 00:00:00 2001 From: Hrishikesh Kokate Date: Fri, 19 Apr 2024 17:31:39 +0530 Subject: [PATCH] fix missing .netlify/edge-functions/angular-ssr https://github.com/netlify/build/blob/main/packages/build/src/plugins_core/pre_dev_cleanup/index.ts#L18-L42 --- src/index.js | 10 ---------- 1 file changed, 10 deletions(-) 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 })