File tree Expand file tree Collapse file tree 5 files changed +413
-13
lines changed Expand file tree Collapse file tree 5 files changed +413
-13
lines changed Original file line number Diff line number Diff line change @@ -158,21 +158,13 @@ const writeEdgeFunction = async ({
158
158
return { function : name , pattern }
159
159
} )
160
160
}
161
-
162
- type NetlifyPluginConstantsWithEdgeFunctions = NetlifyPluginConstants & {
163
- // Until https://github.com/netlify/build/pull/4481 lands
164
- INTERNAL_EDGE_FUNCTIONS_SRC ?: string
165
- }
166
-
167
- export const cleanupEdgeFunctions = async ( {
161
+ export const cleanupEdgeFunctions = ( {
168
162
INTERNAL_EDGE_FUNCTIONS_SRC = '.netlify/edge-functions' ,
169
- } : NetlifyPluginConstantsWithEdgeFunctions ) => {
170
- await emptyDir ( INTERNAL_EDGE_FUNCTIONS_SRC )
171
- }
163
+ } : NetlifyPluginConstants ) => emptyDir ( INTERNAL_EDGE_FUNCTIONS_SRC )
172
164
173
165
export const writeDevEdgeFunction = async ( {
174
166
INTERNAL_EDGE_FUNCTIONS_SRC = '.netlify/edge-functions' ,
175
- } : NetlifyPluginConstantsWithEdgeFunctions ) => {
167
+ } : NetlifyPluginConstants ) => {
176
168
const manifest : FunctionManifest = {
177
169
functions : [
178
170
{
You can’t perform that action at this time.
0 commit comments