Skip to content

Commit

Permalink
Add appDir field to server files manifest (#22915)
Browse files Browse the repository at this point in the history
This adds an `appDir` field to the `required-server-files` manifest signifying where the app source is located. 

x-ref: #22847
  • Loading branch information
ijjk authored Mar 9, 2021
1 parent 969ef16 commit e84571d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/next/build/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@ export default async function build(
compress: false,
configFile: undefined,
},
appDir: dir,
files: [
ROUTES_MANIFEST,
path.relative(distDir, manifestPath),
Expand Down
1 change: 1 addition & 0 deletions test/integration/required-server-files/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ describe('Required Server Files', () => {
expect(requiredFilesManifest.ignore.length).toBeGreaterThan(0)
expect(typeof requiredFilesManifest.config.configFile).toBe('undefined')
expect(typeof requiredFilesManifest.config.trailingSlash).toBe('boolean')
expect(typeof requiredFilesManifest.appDir).toBe('string')

for (const file of requiredFilesManifest.files) {
console.log('checking', file)
Expand Down

0 comments on commit e84571d

Please sign in to comment.