File tree Expand file tree Collapse file tree 3 files changed +27
-10
lines changed
tests/fixtures/simple-next-app Expand file tree Collapse file tree 3 files changed +27
-10
lines changed Original file line number Diff line number Diff line change @@ -115,15 +115,13 @@ export const createServerHandler = async (ctx: PluginContext) => {
115115 await rm ( ctx . serverFunctionsDir , { recursive : true , force : true } )
116116 await mkdir ( join ( ctx . serverHandlerDir , '.netlify' ) , { recursive : true } )
117117
118- await Promise . all ( [
119- copyNextServerCode ( ctx ) ,
120- copyNextDependencies ( ctx ) ,
121- writeTagsManifest ( ctx ) ,
122- copyHandlerDependencies ( ctx ) ,
123- writeHandlerManifest ( ctx ) ,
124- writePackageMetadata ( ctx ) ,
125- writeHandlerFile ( ctx ) ,
126- ] )
118+ await copyNextServerCode ( ctx )
119+ await copyNextDependencies ( ctx )
120+ await writeTagsManifest ( ctx )
121+ await copyHandlerDependencies ( ctx )
122+ await writeHandlerManifest ( ctx )
123+ await writePackageMetadata ( ctx )
124+ await writeHandlerFile ( ctx )
127125
128126 await verifyHandlerDirStructure ( ctx )
129127 } )
Original file line number Diff line number Diff line change 11[functions ]
22directory = " netlify/functions"
3- included_files = [" static/**" ]
3+ included_files = [
4+ " static/**" ,
5+ # this is setup for testing regressions on EEXIST error:
6+ # next.config.js -> experimental.outputFileTracingIncludes makes next.js
7+ # to add those files to .next/standalone directory and we again add those
8+ # files to server handler with this configuration and this makes sure
9+ # there is no errors happening
10+ " public/**" ,
11+ # this is setup for testing regressions on EEXIST error:
12+ # next.js will output node_modules by default to .next/standalone
13+ # this makes sure we test scenario when we additionally copy extra files
14+ # to shared directory and make sure it's not causing EEXIST errors
15+ # added package is not being outputted by next.js by default
16+ " node_modules/js-tokens/**" ,
17+ ]
Original file line number Diff line number Diff line change @@ -4,6 +4,11 @@ const nextConfig = {
44 eslint : {
55 ignoreDuringBuilds : true ,
66 } ,
7+ experimental : {
8+ outputFileTracingIncludes : {
9+ '/' : [ 'public/**' ] ,
10+ } ,
11+ } ,
712 images : {
813 remotePatterns : [
914 {
You can’t perform that action at this time.
0 commit comments