未验证 提交 e84571d8 编写于 作者: J JJ Kasper 提交者: 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
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册