Unverified Commit e84571d8 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Add appDir field to server files manifest (#22915)

This adds an `appDir` field to the `required-server-files` manifest signifying where the app source is located. 

x-ref: https://github.com/vercel/next.js/issues/22847
parent 969ef167
......@@ -407,6 +407,7 @@ export default async function build(
compress: false,
configFile: undefined,
},
appDir: dir,
files: [
ROUTES_MANIFEST,
path.relative(distDir, manifestPath),
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment