- 19 Jan, 2022 2 commits
-
-
Tim Neutkens authored
-
Donny/강동윤 authored
This PR applies lots of patches, including - https://github.com/swc-project/swc/pull/3303 - https://github.com/swc-project/swc/pull/3301 - https://github.com/swc-project/swc/pull/3287 - https://github.com/swc-project/swc/pull/3286 - https://github.com/swc-project/swc/pull/3289 - https://github.com/swc-project/swc/pull/3302 - Fixes https://github.com/vercel/next.js/issues/33265 (Verified) I'll undraft this after verifying
-
- 18 Jan, 2022 3 commits
-
-
JJ Kasper authored
This updates to not commit the copied `react-refresh-utils` files as they will change anytime a new version is published. Fixes: https://github.com/vercel/next.js/runs/4855748491?check_suite_focus=true
-
Jiachi Liu authored
Co-authored-by:kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
-
Tim Neutkens authored
-
- 17 Jan, 2022 14 commits
-
-
Mosaad authored
-
Hannes Bornö authored
Before ```jsx export const getServerSideProps = withSession(async function ({ req, res }) { if (!req.session.user) { return { redirect: { destination: '/login', permanent: false, }, } } return { props: { user }, // User not defined } }) ``` -
Jiachi Liu authored
## Bug Fixes: #32515 Previously, we render the `suffix` after consuming 1st chunk, instead we should render it after stream finished - [x] Related issues linked using `fixes #number` - [x] Integration tests added - [x] Errors have helpful link attached, see `contributing.md`
-
Mario Souto authored
Recently I started to build this library that uses `styled-jsx` under the hood and provide a utility first API to create your own components. > https://github.com/skynexui/components/ Actually I run the lib docs over vercel  ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `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` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have helpful link attached, see `contributing.md` ## Documentation / Examples - [x] Make sure the linting passes by running `yarn lint`
-
Lee Robinson authored
Closes https://github.com/vercel/next.js/issues/33406. This PR is a demonstration of contributing to open source and fixes an issue with a 404 link in the testing documentation.
-
Rishabh Poddar authored
Update version of supertokens-auth-react SDK for this demo. It has a few UI enhancements for our pre built UI + a new passwordless auth recipe. Co-authored-by:
kant01ne <5072452+kant01ne@users.noreply.github.com> Co-authored-by:
Bhumil Sarvaiya <21988812+bhumilsarvaiya@users.noreply.github.com> Co-authored-by:
Joel Coutinho <6310783+jscyo@users.noreply.github.com>
-
Oleg Zuev authored
## Bug Line `const [renderTargetPrefix, renderTargetSuffix] = documentHTML.split(*)` with RegExp almost 80 times slower than a plain string. Before:  After: 
-
Jiachi Liu authored
* keep fetch polyfill only in dev-server, next-server (polyfilled in next.ts) * also export worker, static paths worker since they also requires it
-
Jiachi Liu authored
* keep fetch polyfill only in dev-server, next-server (polyfilled in next.ts) * also export worker, static paths worker since they also requires it
-
JJ Kasper authored
This ncc's some remaining dependencies bringing us under 20 install time dependencies (including nested dependencies), this also reduces install size by another `2.75 MB`. A follow-up PR will investigate a custom install script for our swc packages to allow us to remove the `optionalDependencies` which is slowing down install time as well. x-ref: https://github.com/vercel/next.js/pull/32679 x-ref: https://github.com/vercel/next.js/pull/32627 x-ref: https://github.com/vercel/next.js/issues/31887 x-ref: https://github.com/vercel/styled-jsx/pull/770
-
JJ Kasper authored
This fixes our check for fallback pages during `next export` as we are currently erroring even when the erroneous pages are not included in the `exportPathMap`. This also adds additional tests to certify the expected behavior for the error. ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added - [x] Errors have helpful link attached, see `contributing.md` Fixes: https://github.com/vercel/next.js/issues/29135
-
Donny/강동윤 authored
-
Maedah Batool authored
* feat: Forms example * docs: deploy button * Update examples/next-forms/package.json Co-authored-by:
Lee Robinson <me@leerob.io> * Update examples/next-forms/package.json Co-authored-by:
Lee Robinson <me@leerob.io> * Update examples/next-forms/package.json Co-authored-by:
Lee Robinson <me@leerob.io> * Update examples/next-forms/pages/js-form.js Co-authored-by:
Lee Robinson <me@leerob.io> * Update examples/next-forms/pages/js-form.js Co-authored-by:
Lee Robinson <me@leerob.io> * Update examples/next-forms/pages/index.js Co-authored-by:
Lee Robinson <me@leerob.io> * Update examples/next-forms/README.md Co-authored-by:
Lee Robinson <me@leerob.io> * Update comments formatting * Improve docs for correct examples format. * Lint tests Co-authored-by:
Lee Robinson <me@leerob.io>
-
Bashu Naimi-Roy authored
Fixes a small typo: "highly recommend" -> "highly recommended"
-
- 16 Jan, 2022 2 commits
-
-
JJ Kasper authored
This fixes the case where calling `res.end()` is `getServerSideProps` would cause the request to hang in development due to our `Proxy` around `res` causing internal `ServerResponse` fields to not be available ([related post](https://javascript.info/proxy#built-in-objects-internal-slots)). I also migrated our `getServerSideProps` test suite to an e2e suite with a test for this case. ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added - [x] Errors have helpful link attached, see `contributing.md` Fixes: https://github.com/vercel/next.js/issues/15118 Fixes: https://github.com/vercel/next.js/issues/32824 Closes: https://github.com/vercel/next.js/pull/33129
-
Lee Robinson authored
* Update SECURITY.md * Update SECURITY.md
-
- 15 Jan, 2022 1 commit
-
-
Martijn Hols authored
The filter did not match the intention of the comment as `/(.*)` does not match the homepage as per https://github.com/vercel/next.js/discussions/17991#discussioncomment-1298194. ## Documentation / Examples - [x] Make sure the linting passes by running `yarn lint`
-
- 14 Jan, 2022 11 commits
-
-
Ryan authored
Updating dependencies for examples/with-supabase-auth-realtime-db so npm install does not encounter dependency errors on install. ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `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` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have helpful link attached, see `contributing.md` ## Documentation / Examples - [ ] Make sure the linting passes by running `yarn lint`
-
George Karagkiaouris authored
Adds base http classes, along with Node + Web (partial) implementations Removes usage of IncomingMessage and ServerResponse from base server Co-authored-by:Shu Ding <3676859+shuding@users.noreply.github.com>
-
Jon R authored
Upgrade remark-html dependency to resolve the critical vulnerability. Newer versions like 15.0.1 do not work with this example but version 13.0.2 fixes the security issue and still works. ``` === npm audit security report === # Run npm install remark-html@15.0.1 to resolve 1 vulnerability SEMVER WARNING: Recommended action is a potentially breaking change ┌───────────────┬──────────────────────────────────────────────────────────────┐ │ Critical │ Unsafe defaults in `remark-html` │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Package │ remark-html │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Dependency of │ remark-html │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ Path │ remark-html │ ├───────────────┼──────────────────────────────────────────────────────────────┤ │ More info │ https://github.com/advisories/GHSA-9q5w-79cv-947m │ └───────────────┴──────────────────────────────────────────────────────────────┘ ``` <!-- Thanks for opening a PR! Your contribution is much appreciated. In order 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 helpful link attached, see `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` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have helpful link attached, see `contributing.md` ## Documentation / Examples - [ ] Make sure the linting passes by running `yarn lint` -
Callum Gare authored
Add a note to the onLoad section of the next/script documentation clarifying that onLoad will not run if `strategy="beforeInteractive"`. (That tripped me up for a bit so I thought I'd update the docs to save any one else the hassle :).) Co-authored-by:Lee Robinson <9113740+leerob@users.noreply.github.com>
-
JJ Kasper authored
* Update yarn PnP tests and disable swc file reading for PnP * update job * Update test * add env variable * update destory * test one * bump timeout * update pnp install command * only run pnp test * add more logs * handle exit signal * dont inherit stdio for install * update server start * re-add test type * add build log * additional logging * update build command * remove separate timeout * update install command * install separate for better time info * add cache pre-warming * update yarn config * enable other pnp tests * Separate out tests * fix-lint * update path * update test concurrency for isolated tests * update retries * Revert "update test concurrency for isolated tests" This reverts commit 3a6e924df8ec61d55d3ee8a58d24cd50f0141195. * re-enable production tests * apply suggestions
-
Steven authored
Minor changes to this error message to link to latest docs
-
Tim Neutkens authored
Adds docs for some experimental flags that were already shipped to stable. ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `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` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have helpful link attached, see `contributing.md` ## Documentation / Examples - [ ] Make sure the linting passes by running `yarn lint`
-
Huseyin ELMAS authored
contributing.md file still refers `master` branch name since the branch renamed as `main` recently. This PR contains a fix for that. **related:** #33153 #33198 ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `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` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have helpful link attached, see `contributing.md` ## Documentation / Examples - [x] Make sure the linting passes by running `yarn lint` Co-authored-by:Tim Neutkens <6324199+timneutkens@users.noreply.github.com>
-
Jiachi Liu authored
## Feature Resolves #30996 - [x] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [x] Related issues linked using `fixes #number` - [x] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have helpful link attached, see `contributing.md`
-
Tobias Koppers authored
include a few lines of stack trace in the full refresh overlay error is not necessary webpack related ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `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` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have helpful link attached, see `contributing.md` ## Documentation / Examples - [ ] Make sure the linting passes by running `yarn lint`
-
Donny/강동윤 authored
This PR is a bit big because AST definitions are modified recently because previous AST defs were too error-prone. It will prevent plugin authors from making some common mistakes. - Closes #33088 - Closes #31084 - Closes #33283
-
- 13 Jan, 2022 7 commits
-
-
JJ Kasper authored
-
Bennett Dams authored
Mention middleware to access the request for a page that uses `getStaticProps`, e.g. for authentication purposes. ## Documentation / Examples - [x] Make sure the linting passes by running `yarn lint` Co-authored-by:Lee Robinson <9113740+leerob@users.noreply.github.com>
-
Gal Schlezinger authored
When there is a DOM element with id of `process`, the DOM marks it as a global, so `window.process` would exist. We should check for `process.env` to make sure it is available too.
-
Maedah Batool authored
Found some broken links in the updated Data Fetching docs. Fixed all of these. ## Documentation / Examples - [x] Make sure the linting passes by running `yarn lint` Co-authored-by:Lee Robinson <9113740+leerob@users.noreply.github.com>
-
Balázs Orbán authored
Fixes #33135 I also tried reducing the number of variants. ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `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` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have helpful link attached, see `contributing.md` ## Documentation / Examples - [ ] Make sure the linting passes by running `yarn lint`
-
Gonzalo Pozzo authored
Copy pasting the first paragraph will trigger the `@next/next/google-font-display` lint rule, users should be able to copy and paste it without warnings.
-
Tim Neutkens authored
-