- 02 12月, 2020 5 次提交
-
-
由 Janicklas Ralph 提交于
Co-authored-by: NJJ Kasper <jj@jjsweb.site>
-
由 Vyacheslav Matyukhin 提交于
dotenv currently doesn't support inline comments (see https://github.com/motdotla/dotenv/issues/484), so it's misleading to use inline comments in documentation examples.
-
由 Pradip Caulagi 提交于
Build directory is `dist` and not `build`. The typo also makes gitignore not work correctly.
-
由 Luis Alvarez D 提交于
Updated one of the deployment steps to make sure the deployment of the home app is not done without pushing the blog URL first!
-
由 Steven 提交于
The [default loader](https://github.com/vercel/next.js/blob/17b91e7c76711308707bc8ab3308376af98170e6/packages/next/client/image.tsx#L488) and [imgix loader](https://docs.imgix.com/apis/rendering/format/q) use a quality of 75 if none is specified on the Image component. This PR does something similar for the cloudinary loader by utilizing `q_auto`, but it should yield even better results. > This setting can significantly reduce the file size without any degradation noticeable to the human eye, and without the need for you to individually analyze every image. https://cloudinary.com/documentation/image_optimization#use_q_auto_automatic_quality_and_encoding ### Example - [Before](https://res.cloudinary.com/demo/image/upload/woman.jpg) - 583KB - [After](https://res.cloudinary.com/demo/image/upload/q_auto/woman.jpg) - 46KB
-
- 01 12月, 2020 1 次提交
-
-
由 Vishnu Paduchuri 提交于
-
- 30 11月, 2020 3 次提交
-
-
由 Dennis Morello 提交于
This PR closes #19649.
-
由 Tim Neutkens 提交于
-
由 Wesley Tian 提交于
Either use `avoid` or `prevent` as verb, but not both.
-
- 28 11月, 2020 1 次提交
-
-
由 Mark Steggles 提交于
-
- 27 11月, 2020 1 次提交
-
-
- 26 11月, 2020 4 次提交
-
-
由 Guy Bedford 提交于
This reverts #18921 and ensures that the Babel runtime is only inlined as an absolute path when using PnP as before, but then including the correction this resolution as implemented by @merceyz only in the PnP cases, while keeping the diff to a minimum.
-
由 JJ Kasper 提交于
This breaks up the `serverless-loader` into typed handlers to allow for easier maintenance and better type-checking/linting. Closes: https://github.com/vercel/next.js/issues/19071
-
由 Arthur Petrie 提交于
Hello, this PR updates the with-tailwindcss-emotion example to be compatible with tailwindcss 2.0 Here is a summary of all the changes: - update `.babelrc` config - update `README.md` - delete `@emotion/css component` (makes the example simpler) - update `@emotion/react` component to use xwind - update `@emotion/styled` component to use xwind - Add global styles to `_app.js` - remove `_document.js` page - remove `base.css` global style files (global styles are added in _app.js) - update `tailwind.config.js` - update `package.json` dependencies + remove unnecessary `build:base-css` script
-
由 Ivan V 提交于
By default, MobX 6 and later require that you use `actions` to make changes to the state, otherwise, it issues a warning in the console, because the `hydrate` method of the `store.js` class hasn't been declared an action, you can see this warning if you try to load pages that use hydration (ssg, ssr). This pull request fixes that. More info about the behavior: https://mobx.js.org/actions.html#disabling-mandatory-actions-
-
- 25 11月, 2020 10 次提交
-
-
由 Jamie 提交于
Fixes #16173 ## What Restores handling of termination signals, `SIGTERM` and `SIGINT`, to allow graceful termination of next commands. Seems to have been removed during a child process refactor #6450, was this intentional? ## Why Currently the command processes have to be forcefully killed. This would help those using Next.js with custom servers and tools like Docker and Kubernetes that rely on termination signals to shutdown instances. --- Where would be a good location to add some tests? [test/integration/cli/test/index.test.js](https://github.com/vercel/next.js/blob/fc98c13a2e6bc545073de0eedbe045352b387f6d/test/integration/cli/test/index.test.js)?
-
由 Curt Siffert 提交于
To clarify what I've noticed as a common source of confusion in discussions online. Fixes https://github.com/vercel/next.js/issues/19426 If you wish to know whether the code is running as part of a client-side page transition, in either `getInitialProps` or `getServerSideProps`, you can check to see if `context.req.url` starts with `/_next/data`.
-
-
由 Luis Alvarez D 提交于
- Updated some links in docs that don't have the `.md` extension. Not required for our live docs but useful for the GitHub view. - Updated links that go to https://nextjs.org/docs to a relative path, that way they'll work for versioned docs - Updated the `Regex Path Matching` example to be consistent with the paragraph above and with the official example in /examples.
-
由 Manu 提交于
The code here should contain a regex path matching example, as stated in the comment; but it is the same as the wildcard path matching example above. https://nextjs.org/docs/api-reference/next.config.js/redirects#regex-path-matching
-
由 Balázs Orbán 提交于
For an API route to work, you need to `export as default a function` (a.k.a **request handler**), which then receives the following parameters: For an API route to work, you need to `export a function as default` (a.k.a **request handler**), which then receives the following parameters: I might be wrong though (not a native English speaker), it just sounds strange to my ears.
-
由 Osh Slomczynski 提交于
-
由 mikan3rd 提交于
I couldn't find an example when creating an SSR page using firebase's firestore data, so I improved the example based on the actual app I created My sample app: https://github.com/mikan3rd/commitly
-
-
由 Nikolas Santis 提交于
Adding a example with **Neo4j** native graph database. - with-neo4j: basic api routes with neo4j driver. :)
-
- 24 11月, 2020 8 次提交
-
-
由 James George 提交于
Leverage [execa](https://github.com/sindresorhus/execa) for writing to `stdin`.
-
由 Laurent Meyer 提交于
-
由 Joe Haddad 提交于
-
由 Joe Haddad 提交于
-
由 Noob Tsai 提交于
The `custom-server-koa` example is not working in the latest koa-router, so I made some changes mentioned in #9705. Also update Koa.js to 2.13.0.
-
由 Allen Hai 提交于
* [examples] add with-mysql example * [examples] add demo link to with-mysql readme * [examples] add next.js + mysql example with correct env pattern * [examples] fix lint errors, update package name, remove unnecessary res statement * [examples] remove unused imports and variables * [examples] fix some linting errors * Added NextApiHandler to API endpoints * Lint fixes * Added useEntry hook * Updated type * Update examples/with-mysql/package.json * Updated readme * fixed URL Co-authored-by: NMatthew Sweeney <mail@mcs.dev> Co-authored-by: NLuis Alvarez <luis@vercel.com>
-
由 Joe Haddad 提交于
-
由 Joe Haddad 提交于
Update for rebranding purposes
-
- 23 11月, 2020 3 次提交
-
-
由 Joe Haddad 提交于
-
由 Joe Haddad 提交于
Fixes #19399
-
由 Tobias Lundgren 提交于
- Upgrade TypeScript example to Chakra UI v1 - Upgrade to React 17 - Patch some missing parts and fix broken icons in non TypeScript example - Add example how to persist color mode when you refresh the page: https://chakra-ui.com/docs/features/color-mode#add-colormodescript Source: https://chakra-ui.com/docs/migration
-
- 22 11月, 2020 1 次提交
-
-
由 JJ Kasper 提交于
h/t to @prateekbh for noticing this test isn't cleaning up properly Closes: https://github.com/vercel/next.js/issues/19369
-
- 21 11月, 2020 3 次提交
-
-
由 Ivan V 提交于
Mobx version 6 has been released, and it's a big one. <blockquote class="twitter-tweet" data-partner="tweetdeck"><p lang="en" dir="ltr">Just released <a href="https://twitter.com/hashtag/mobx?src=hash&ref_src=twsrc%5Etfw">#mobx</a> 6! <br><br>
👉 makeAutoObservable😍 <br>👉 Decorator free by default<br>👉 Fully revamped docs for modern React <br>👉 Supersedes both MobX 4 and 5<br>👉 Codemod for migration<a href="https://t.co/U6EpZaNhyz">https://t.co/U6EpZaNhyz</a></p>— Michel Weststrate (@mweststrate) <a href="https://twitter.com/mweststrate/status/1311344102991159296?ref_src=twsrc%5Etfw">September 30, 2020</a></blockquote> Decorator support is officially dropped, so the syntax for creating observable objects has changed (checkout store.js). There is no need for custom babel configuration anymore. In comparison to current mobx examples, the difference is that I'm using regular `React.useContext` and `React.createContext` to consume the mobx store, [this is recommended by the official documentation.](https://mobx.js.org/react-integration.html#using-external-state-in-observer-components) When the component is wrapped in the observer function, the component function is given a name so it appears correctly in the react development tools. As of mobx v6 `mobx-react` package bundles `mobx-react-lite` so I could have used that package, but I've decided to use the `lite` one, because of the size. -
由 JJ Kasper 提交于
This updates the fallback locale for `locale: false` to be the `defaultLocale` instead of the currently active `locale` as it allows passing through URLs more seamlessly as a URL without the locale prefixed can be treated as the `defaultLocale` instead of having to worry if the locale matches the currently active locale. This also ensures `locale={false}` is tested in the i18n-support-catchall suite Closes: https://github.com/vercel/next.js/issues/19048
-
由 Connor Davis 提交于
* Exclude well known files when trailing slash: true * Update manifest test Co-authored-by: NJJ Kasper <jj@jjsweb.site>
-