File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
packages/runtime/src/helpers Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ export const writeEdgeFunctions = async (netlifyConfig: NetlifyConfig) => {
203
203
const { publish } = netlifyConfig . build
204
204
const nextConfigFile = await getRequiredServerFiles ( publish )
205
205
const nextConfig = nextConfigFile . config
206
- await ensureDir ( join ( edgeFunctionRoot , 'edge-shared' ) )
206
+ await copy ( getEdgeTemplatePath ( '../edge-shared' ) , join ( edgeFunctionRoot , 'edge-shared' ) )
207
207
await writeJSON ( join ( edgeFunctionRoot , 'edge-shared' , 'nextConfig.json' ) , nextConfig )
208
208
209
209
if ( ! process . env . NEXT_DISABLE_EDGE_IMAGES ) {
@@ -223,7 +223,6 @@ export const writeEdgeFunctions = async (netlifyConfig: NetlifyConfig) => {
223
223
} )
224
224
}
225
225
if ( process . env . NEXT_DISABLE_NETLIFY_EDGE !== 'true' && process . env . NEXT_DISABLE_NETLIFY_EDGE !== '1' ) {
226
- await copy ( getEdgeTemplatePath ( '../edge-shared' ) , join ( edgeFunctionRoot , 'edge-shared' ) )
227
226
const middlewareManifest = await loadMiddlewareManifest ( netlifyConfig )
228
227
if ( ! middlewareManifest ) {
229
228
console . error ( "Couldn't find the middleware manifest" )
You can’t perform that action at this time.
0 commit comments