Files
Ngô Đức AnhandGitHub 98cc99df46 fix(standalone): fixed output: "standalone" crashing build when there is no app/ page (#51993)
### 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
2023-07-10 08:40:02 +00:00

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')
})
}
)