File tree 1 file changed +0
-10
lines changed 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change 1
- const { rm } = require ( 'fs/promises' )
2
- const { join } = require ( 'path' )
3
-
4
1
const ensureNoCompetingPlugin = require ( './helpers/ensureNoCompetingPlugin' )
5
2
const fixOutputDir = require ( './helpers/fixOutputDir' )
6
3
const getAngularJson = require ( './helpers/getAngularJson' )
@@ -11,13 +8,6 @@ const validateAngularVersion = require('./helpers/validateAngularVersion')
11
8
let isValidAngularProject = true
12
9
13
10
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
- } ,
21
11
async onPreBuild ( { netlifyConfig, utils, constants } ) {
22
12
const { failBuild, failPlugin } = utils . build
23
13
const siteRoot = getAngularRoot ( { failBuild, netlifyConfig } )
You can’t perform that action at this time.
0 commit comments