- 12 7月, 2018 1 次提交
-
-
由 Michael Herold 提交于
Preferably this installation wouldn't be necessary, but in lieu of a fix... #4751
-
- 11 7月, 2018 2 次提交
-
-
由 Albin Ekblom 提交于
-
由 Jacob Page 提交于
* Remove nesting of runtime configuration under the babel section, since it's not related to babel. * Clean up confusing verbiage relating to "keys."
-
- 09 7月, 2018 1 次提交
-
-
由 jhartley218 提交于
Updating to a more recent version of `@types/next` fixes an error I encountered while building a new app on top of the "with-typescript" example: `Property `push` not found in SingletonRouter` Additional context: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/26665 To test, add a simple Router.push operation to the `pages/index.tsx` ``` import Router from 'next/router' // ... <span onClick={() => Router.push({ pathname: '/about' })}>TEST</span> ```
-
- 07 7月, 2018 2 次提交
-
-
由 Tim Neutkens 提交于
-
由 Tim Neutkens 提交于
-
- 06 7月, 2018 2 次提交
-
-
由 Brendan Houle 提交于
-
由 NikitaVlaznev 提交于
Apollo's getDataFromTree is supposed to be called during the server side rendering. Being called in browser it fires an unnecessary fake render process and blocks components from rendering with loading=true. Also there was a mistake in this code: // `getDataFromTree` renders the component first, the client is passed off as a property. // After that rendering is done using Next's normal rendering pipeline this.apolloClient = props.apolloClient || initApollo(props.apolloState.data) **Apollo** component is not rendered by getDataFromTree actually, it renders the **App** directly, thus props.apolloClient will always be undefined. This example was discussed here: https://github.com/zeit/next.js/issues/387.
-
- 05 7月, 2018 1 次提交
-
-
由 Jacob Page 提交于
Fixes #4679 * Document usage of `events` router property * Expose `events` in the `router` context object
-
- 04 7月, 2018 1 次提交
-
-
由 Michael Hsu 提交于
This PR is a follow-up to 6.1 breaking #4506: Rename `dist` to `server`
-
- 03 7月, 2018 1 次提交
-
-
由 Luc 提交于
Fixes #4713 I ran into this issue, when re-installing : ``` error upath@1.0.4: The engine "node" is incompatible with this module. Expected version ">=4 <=9". error Found incompatible module ``` I used `yarn install --ignore-engines` as a workaround.
-
- 01 7月, 2018 2 次提交
-
-
由 Junyoung Choi (Sai) 提交于
in flavor of https://github.com/zeit/next.js/pull/4377
-
由 Vinicius Pacheco Furtado 提交于
Update @zeit/next-typescript version on examples using it
-
- 30 6月, 2018 2 次提交
-
-
由 Gary Meehan 提交于
The purpose of the PR is to add the simplest possible integration with Storybook. It leaves the default Storybook and also adds a custom component to show how it would be used in both the app and Storybook. Update: Tested with latest
👉 6.1.1 -
由 Gary Meehan 提交于
Removes unused file Adds note on `day` subdirectory.
-
- 29 6月, 2018 9 次提交
-
-
由 dengyunxie 提交于
unified format
😀 😋 -
由 Tim Neutkens 提交于
-
由 Niklas Wagner 提交于
I had some trouble to get server side rendering with the AWSAppSyncClient working. I finally found a solution in https://github.com/awslabs/aws-mobile-appsync-sdk-js/issues/82 but it might be worth to share it here as well. Instead of adding a big code block to each file I'll just refer to this Pull Request. ______ In case you want to use the `AWSAppSyncClient` you just need to replace the `create()` function with this function: ```jsx import AWSAppSyncClient from 'aws-appsync'; import { AUTH_TYPE } from 'aws-appsync/lib/link/auth-link'; function create(initialState) { const client = new AWSAppSyncClient({ url: AWS_AppSync.graphqlEndpoint, region: AWS_AppSync.region, auth: { type: AUTH_TYPE.API_KEY, apiKey: AWS_AppSync.apiKey, // Amazon Cognito Federated Identities using AWS Amplify //credentials: () => Auth.currentCredentials(), // Amazon Cognito user pools using AWS Amplify // type: AUTH_TYPE.AMAZON_COGNITO_USER_POOLS, // jwtToken: async () => (await Auth.currentSession()).getIdToken().getJwtToken(), }, disableOffline: true, }, { cache: new InMemoryCache().restore(initialState || {}), ssrMode: true }); return client; } ```
-
由 Tim Neutkens 提交于
-
由 Tim Neutkens 提交于
-
由 Tim Neutkens 提交于
When clicking a next/link with a hash (#something) multiple times, it wouldn't keep the scrolling behavior browsers have. This makes sure we correctly trigger it.
-
由 Thomas Hermann 提交于
When implementing a strict CSP with nonces and `strict-dynamic`, every script and preload requires a nonce. https://csp.withgoogle.com/docs/strict-csp.html
-
由 Tim Neutkens 提交于
Fixes #4686 Adds tests for @zeit/next-typescript so that we don't regress on this again. I've fixed an issue in the `next` CLI too which caused lingering processes when the process gets force killed, which is what we do in the test suite, so it kept running if there was no manual quit.
-
由 Leo Lamprecht 提交于
-
- 28 6月, 2018 3 次提交
-
-
由 Andrew Cherniavskii 提交于
Closes #4684
-
由 Luc 提交于
This PR fixes #4615 From the issue : > One thing we might consider is merging and showing a warning for keys not defined in exportPathMap The behaviour after this PR is the following : ```js // next.config.js module.exports = { exportPathMap: () => ({ '/': { page: '/', query: { a: 'blue' } } }) } ``` | url called | `ctx.query` | warning ? | |-|-|-| | `/` | `{ a: 'blue' }` | | | `/?a=red` | `{ a: 'blue' }` | | | `/?b=green` | `{ a: 'blue', b: 'green' }` | `... parameter 'b' missing in exportPathMap` | Is that the expected behaviour ? If not, I'll update the PR to shape the expected behavior.
-
由 Tim Neutkens 提交于
-
- 27 6月, 2018 1 次提交
-
-
由 Steve Korshakov 提交于
I have spend whole day on profiling next.js compiling performance and one of the easy hacks to reduce built time is avoid doing full `stats.toJson()` that is heavy by default.
-
- 26 6月, 2018 2 次提交
-
-
由 Tim Neutkens 提交于
-
由 Tim Neutkens 提交于
Fixes #4664
-
- 25 6月, 2018 1 次提交
-
-
由 Kelly Burke 提交于
-
- 24 6月, 2018 3 次提交
-
-
由 Olivier Tassinari 提交于
I can't use a functional component with `_document.js`. [is-react](https://www.npmjs.com/package/is-react) can be used for another potential implementation of the warning logic, but maybe relying on `React.createElement()` internal checks is enough.
-
由 Bünyamin Benny Genel 提交于
with-socket.io example was using a single index file and was managing connection in there. This would lead handling connection (disconnecting and reconnecting) in each added page. I updated example with addition of `_app.js` and handled connection in there. This helped only subscribing to event in page and maintaining connection throughout example.
-
由 Olivier Tassinari 提交于
Unless I'm missing something, we don't need this async. The transpiled JavaScript is much smaller
🚀
-
- 23 6月, 2018 1 次提交
-
-
由 Olivia Isaacs 提交于
Fixes #4284 Made change as discussed in #4284
-
- 22 6月, 2018 3 次提交
-
-
由 Brice BERNARD 提交于
-
由 Tim Neutkens 提交于
* Rephrase url deprecation text and add link to next-codemod * Clean up double words
-
由 Tim Neutkens 提交于
Next.js supports React 15 / React-like alternatives that don’t have the `rehydrate` method (preact) again since Next.js 5+. It’s still not recommended to use React 15. But there’s no need to mention that here as this is the initial installation and we instruct the user to install the latest version of React.
-
- 20 6月, 2018 2 次提交
-
-
由 Bünyamin Benny Genel 提交于
Small example app using [unstated](https://github.com/jamiebuilds/unstated) library. Example uses components and logic from [with-redux](https://github.com/zeit/next.js/tree/canary/examples/with-redux) example.
-
由 Tim Neutkens 提交于
-