- 14 Sep, 2021 5 commits
-
-
jj@jjsweb.site authored
-
JJ Kasper authored
This fixes segments inside of the host of the destination failing to parse with url.parse due to the unexpected colon by escaping the colon for segments and then unescaping them after we have parsed the URL. ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added - [x] Errors have helpful link attached, see `contributing.md` x-ref: https://github.com/vercel/vercel/pull/6713
-
Tim Neutkens authored
* Add stats config for SWC * Remove stats for deprecated mode * Include native binaries in local linking * Expose minify in next-swc * Build next-swc binaries * Only upload changed binary artifact * Build next-swc binaries * Expose minify in js binding * Use new minify function in terser plugin * Build next-swc binaries * Build next-swc binaries * Build next-swc binaries * Pass pagesDir option to SWC for next/dynamic * Build next-swc binaries * Add spans for next-trace-entrypoints-plugin * Fix linting Co-authored-by:
Maia Teegarden <dev@padmaia.rocks> Co-authored-by:
padmaia <padmaia@users.noreply.github.com> Co-authored-by:
timneutkens <timneutkens@users.noreply.github.com>
-
Tobias Koppers authored
-
Jeff Wen authored
-
- 13 Sep, 2021 14 commits
-
-
Maia Teegarden authored
* Fix upload of binary artifacts * Build next-swc binaries Co-authored-by:kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
-
Kara authored
* Throw error if res is accessed after gSSP returns Currently it's possible to access the `ServerResponse` through `context.res` in `getServerSideProps()`. If one was to store that response and mutate its headers or status code after gSSP returns (e.g. during rendering), it would currently happen to work because of when headers are sent. However, this is an anti-pattern that relies an implementation detail of the framework and shouldn't be allowed. This will be particularly important once Next.js starts to support basic streaming (two-part flush: routing then data) because then the headers will be sent as soon as gSSP returns, which explicitly breaks this pattern. With this commit, the framework now throws an error in development mode if the ServerResponse is accessed after gSSP returns. * fixup! Throw error if res is accessed after gSSP returns
-
Lee Robinson authored
I also removed the custom server link here, because I think it's making too strong of a correlation between custom server and Node.js server using `next start`, which aren't the same.
-
Konstantin Popov authored
Fix minor typo: suits -> suites
-
JJ Kasper authored
This is a follow-up to https://github.com/vercel/next.js/pull/29060 removing the `test_macos` workflow since it is redundant to run these tests in macOS as it should be very unlikely the tests fail in the mac environment but pass in the ubuntu environment. It also seems the snapshot tests are incorrect inside of the GitHub actions macOS environment so these tests will not work correctly anyways.
-
Houssein Djirdeh authored
Updates the `with-google-tag-manager` to use Next.js' Script component with strategy set to `afterInteractive` CC @janicklas-ralph Closes: https://github.com/vercel/next.js/issues/26507
-
JJ Kasper authored
* Update test workflows for mac/react * share timings as well * update macos
-
JJ Kasper authored
* Fix webpack version and safari test and update compiled * Update compiled again
-
Tim Neutkens authored
Co-authored-by:Jiachi Liu <inbox@huozhi.im>
-
volcareso authored
## 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
-
JJ Kasper authored
Co-authored-by:kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
-
강동윤 authored
* Add pages_dir * Add `pages_dir` to `next/dynamic` pass * Dep * Fix next/dynamic psss * Fix * Update test refs * Add a test
-
강동윤 authored
Co-authored-by:Tim Neutkens <timneutkens@me.com>
-
Tim Neutkens authored
-
- 12 Sep, 2021 1 commit
-
-
Konstantin Popov authored
Fix minor typo: image optimization -> Image Optimization
-
- 11 Sep, 2021 3 commits
-
-
Oiva Eskola authored
I imported a bunch of old markdown posts to the blog-starter example but some of the post metadata was not returned by the API in the example code. For example, having `published: false` in post metadata was not returned in the item fields. The problem was in check: ``` if (data[field]) { items[field] = data[field] } ``` This rejects all falsy values in addition to fields that are not set. Checking only for `undefined` should fix this issue. I didn't find existing integration tests for the blog example nor an issue describing this problem. ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` -
Maia Teegarden authored
This should fix this: https://github.com/vercel/next.js/pull/28883/checks?check_run_id=3560578176#step:4:353 ## 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
-
Gerald Monaco authored
Use `Writable` instead of `Observable` and remove the `zen-observable` dependencies. I initially opted to use `Observable` for simplicity and fast iteration, but we should really just use `Writable` directly (or some other stream in the future). React's streaming SSR has some [specific requirements](https://github.com/reactwg/react-18/discussions/66#discussioncomment-944266) on the stream API. Rather than trying to also squeeze a `Readable` in here, which might be more standard for node apps, I've just followed React's lead. By limiting ourselves to just `Writable`, it ought to be easier to adopt a different stream type in the future if desired. The React `pipeToNodeWritable` API requires us to pass a stream immediately, but we don't actually have a `ServerResponse` to give it until `RenderResult.pipe(...)` is called later. For that reason, we pass React a `Writable` that we will simply forward to `res` later. This mechanism of deferring is `NodeWritablePiper`, which is just a function that can be called with `ServerResponse` (or another `Writable`, as we now do to render to string for static results) to have content written to it. `NodeWritablePiper` takes a `next` argument so that we can chain both synchronous and asynchronous pipers together. Also does some clean up and adds another streaming test for backpressure.
-
- 10 Sep, 2021 4 commits
-
-
Kara authored
In a previous PR, `getServerSideProps` was altered to support returning `props` as a promise. This change updates the TS types to permit promises as well, so you can write type `GetServerSideProps<Props>` instead of `GetServerSideProps<Promise<Props>>`. e.g.: ```typescript type Props = { data: string } export const getServerSideProps: GetServerSideProps<Props> = async ( context ) => { return { props: (async function () { return { data: 'some data' } })(), } } ``` ## Feature - [x] 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` - [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` -
volcareso authored
Added () outside *demo" ## 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
-
Tim Neutkens authored
-
JJ Kasper authored
This ensures we have the correct `cache-control` header when `revalidate` is used with `notFound: true` on `getStaticProps` or `getServerSideProps` pages. ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added - [x] Errors have helpful link attached, see `contributing.md` Fixes: https://app.clubhouse.io/vercel/story/23445
-
- 09 Sep, 2021 8 commits
-
-
JJ Kasper authored
-
Maia Teegarden authored
* Update swc in next-swc * Fix typo Co-authored-by:
Steven <steven@ceriously.com> * Build next-swc binaries Co-authored-by:
Steven <steven@ceriously.com>
-
Nwachukwu Daniel (DONSN) authored
Changed - function component to - functional component in the heading and sentence below: If the child of `Link` is a functional component, in addition to using `passHref`, you must wrap the component ## 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
-
Rishabh Poddar authored
We update the dependency version to v7.0.0 and make a few code changes to work with the new version
-
강동윤 authored
## Bug - [x] 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 I updated rust dependencies and node dependencies.
-
Adrien HARNAY authored
* support node-sass@6 * bump sass-loader * Update precompiled Co-authored-by:
Tim Neutkens <timneutkens@me.com> Co-authored-by:
kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
-
JJ Kasper authored
Co-authored-by:kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
-
Jiachi Liu authored
Co-authored-by:kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
-
- 08 Sep, 2021 5 commits
-
-
CatNose authored
## Bug - Fixes #28708 - [x] Related issues linked using `fixes #number`
-
Ismail Ghallou authored
## Documentation / Examples - [x] Make sure the linting passes Fixes https://github.com/vercel/next.js/pull/27674
-
Gerald Monaco authored
We're no longer currently planning on supporting caching for dynamic responses, so we can do some cleaning & simplification: * Multiplexing can be removed since we only ever subscribe once (via `RenderResult.pipe`, described below) * `RenderResult.toUnchunkedString` can become synchronous since static responses are never chunked * `RenderResult.forEach` can become `RenderResult.pipe` which helps encapsulate some of the details of `RenderResult`
-
scottrepreneur authored
Small fix on parameter expecting to be de-duped
-
Tim Neutkens authored
-