rsnext/packages
Ngô Đức Anh 758990dc06
fix output: "standalone" returning 500 error on certain pages when built without pages/ (#43336)
<!--
Thanks for opening a PR! Your contribution is much appreciated.
To make sure your PR is handled as smoothly as possible we request that
you follow the checklist sections below.
Choose the right checklist for the change that you're making:
-->

## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have a helpful link attached, see
[`contributing.md`](https://github.com/vercel/next.js/blob/canary/contributing.md)

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the
feature request has been accepted for implementation before opening a
PR.
- [ ] Related issues linked using `fixes #number`
- [ ]
[e2e](https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs)
tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have a helpful link attached, see
[`contributing.md`](https://github.com/vercel/next.js/blob/canary/contributing.md)

## Documentation / Examples

- [ ] Make sure the linting passes by running `pnpm build && pnpm lint`
- [ ] The "examples guidelines" are followed from [our contributing
doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)

This reverts a part of the changes made in [PR
43268](https://github.com/vercel/next.js/pull/43268), which is checking
whether pagesDir exists in the root/src dir before copying the output in
.next/server to .next/standalone/.next/server as this causes certain
pages to cause the script to log `Error: Cannot find module
'.next/server/pages/_document.js'` and return a `Internal Server Error`
page since Next today still depends on pages/ dir for 404 and 500 pages
and as such needs that dir in .next/standalone/.next/server.
2022-11-25 16:44:51 -08:00
..
create-next-app v13.0.6-canary.1 2022-11-25 13:31:08 +01:00
eslint-config-next v13.0.6-canary.1 2022-11-25 13:31:08 +01:00
eslint-plugin-next v13.0.6-canary.1 2022-11-25 13:31:08 +01:00
font v13.0.6-canary.1 2022-11-25 13:31:08 +01:00
next fix output: "standalone" returning 500 error on certain pages when built without pages/ (#43336) 2022-11-25 16:44:51 -08:00
next-bundle-analyzer v13.0.6-canary.1 2022-11-25 13:31:08 +01:00
next-codemod v13.0.6-canary.1 2022-11-25 13:31:08 +01:00
next-env v13.0.6-canary.1 2022-11-25 13:31:08 +01:00
next-mdx v13.0.6-canary.1 2022-11-25 13:31:08 +01:00
next-plugin-storybook v13.0.6-canary.1 2022-11-25 13:31:08 +01:00
next-polyfill-module v13.0.6-canary.1 2022-11-25 13:31:08 +01:00
next-polyfill-nomodule v13.0.6-canary.1 2022-11-25 13:31:08 +01:00
next-swc v13.0.6-canary.1 2022-11-25 13:31:08 +01:00
react-dev-overlay v13.0.6-canary.1 2022-11-25 13:31:08 +01:00
react-refresh-utils v13.0.6-canary.1 2022-11-25 13:31:08 +01:00