mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
### What? This PR fixes build crashing when `output: 'standalone'` and `experimental.appDir` is enabled but there is no app pages. ### How? It does that by checking whether `.next/server/app` exists before copying the folder to `.next/standalone/...` Closes #51828 Fixes #44442 Fixes #44120
15 lines
359 B
TypeScript
15 lines
359 B
TypeScript
import { createNextDescribe } from 'e2e-utils'
|
|
|
|
createNextDescribe(
|
|
'standalone mode - no app routes',
|
|
{
|
|
files: __dirname,
|
|
},
|
|
({ next }) => {
|
|
it('should handle pages rendering correctly', async () => {
|
|
const browser = await next.browser('/hello')
|
|
expect(await browser.elementByCss('#index').text()).toBe('index-page')
|
|
})
|
|
}
|
|
)
|