Skip to content

Commit

Permalink
Fix failing switchable runtime deploy test (#39579)
Browse files Browse the repository at this point in the history
This ensures we add the needed manifest for b5aa571 in the `required-files-manifest`. No new test cases have been added as this was caught by the existing deploy test. 

## Bug

- [x] Related issues linked using `fixes #number`
- [x] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

x-ref: https://github.com/vercel/next.js/runs/7821226464?check_suite_focus=true#step:8:193
  • Loading branch information
ijjk committed Aug 13, 2022
1 parent d880916 commit 0f65bf6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/next/build/index.ts
Expand Up @@ -57,6 +57,7 @@ import {
APP_PATH_ROUTES_MANIFEST,
COMPILER_NAMES,
APP_BUILD_MANIFEST,
FLIGHT_SERVER_CSS_MANIFEST,
} from '../shared/lib/constants'
import { getSortedRoutes, isDynamicRoute } from '../shared/lib/router/utils'
import { __ApiPreviewProps } from '../server/api-utils'
Expand Down Expand Up @@ -708,6 +709,10 @@ export default async function build(
? [
path.join(SERVER_DIRECTORY, FLIGHT_MANIFEST + '.js'),
path.join(SERVER_DIRECTORY, FLIGHT_MANIFEST + '.json'),
path.join(
SERVER_DIRECTORY,
FLIGHT_SERVER_CSS_MANIFEST + '.json'
),
]
: []),
REACT_LOADABLE_MANIFEST,
Expand Down

0 comments on commit 0f65bf6

Please sign in to comment.