- 24 9月, 2020 4 次提交
-
-
由 Sam Poder 提交于
There was a blank line, this PR removes it :D
-
由 Joe Haddad 提交于
-
由 Joe Haddad 提交于
Prior to this pull request, Next.js would immediately decode all URLs sent to its server (via `path-match`). This was rarely needed, and Next.js would typically re-encode the incoming request right away (see all the `encodeURIComponent`s removed in PR diff). This adds unnecessary performance overhead. Long term, this will also help prevent weird encoding edge-cases like #10004, #10022, #11371, et al. --- No new tests are necessary for this change because we've extensively tested these edge cases with existing tests. One test was updated to reflect that we skip decoding in a 404 scenario. Let's see if all the existing tests pass!
-
由 Stig Kleppe-Jørgensen 提交于
-
- 23 9月, 2020 1 次提交
-
-
由 Gergo Tolnai 提交于
-
- 22 9月, 2020 6 次提交
-
-
由 Luis Alvarez D 提交于
-
由 Joe Haddad 提交于
-
由 Sébastien Vanvelthem 提交于
Update [`next-auth`](https://github.com/iaincollins/next-auth) from `^2.1.0` to `^3.1.0` and minor sqlite bump to `^5.0.0`.
-
由 Kazuma Furuhashi 提交于
This is a change to add the project name as in the other examples. When we run with the current create command, we are asked for the project name. As follows: ``` $ npx create-next-app --example with-three-js ? What is your project named? › my-app ```
-
由 paulogdm 提交于
This PR removes "vercel.json" from the Yarn workspaces example. Since the release of [monorepos](https://vercel.com/blog/monorepos) support, there is no need to use the "builds" property or "vercel.json".
-
由 Yuji Sugiura 提交于
This PR fixes `info - undefined (N/N)` log for `export` cli. ![image](https://user-images.githubusercontent.com/6259812/93186247-5d801500-f779-11ea-89ec-e20939d7b7c1.png) Default parameter `label` for `createProgress()` was always ignored by `${Log.prefixes.info} undefined`
😅 .
-
- 21 9月, 2020 8 次提交
-
-
由 tomasdisk 提交于
This PR adds an example Next.js project with chakra-ui as its component library using TypeScript. ![image](https://user-images.githubusercontent.com/11686408/91192736-a8ec5980-e6cc-11ea-8f95-b9180defbf47.png) Both libraries has built-in TypeScript declarations. Will help to encourage typed projects, so why not? It's a combination of two existing examples [with-chakra-ui](https://github.com/vercel/next.js/tree/canary/examples/with-chakra-ui) and [with-typescript](https://github.com/vercel/next.js/tree/canary/examples/with-typescript). All credits for their contributors.
-
由 Nghiệp 提交于
* Fix missing yarn.lock * Add --frozen-lockfile flag to speed up install deps * Make sure node_modules do not contains devDependencies * Add --targe stage docker build
-
由 Ilya Lebedev 提交于
Because `import()` for .json files return object like this: ```json { "default": { "some": ... }, "some": ... } ``` ![image](https://user-images.githubusercontent.com/2598671/93468826-4156b200-f8f8-11ea-8e39-42df2df83057.png)
-
由 Ilya Lebedev 提交于
Invalid ordering in Promise.all and in receiving destruction. Now appProps receives result of polyfill(supportedLocale) call.
-
由 Devin Ekadeni 提交于
As mentioned in [here](https://www.npmjs.com/package/@types/testing-library__react), the package has been deprecated and not necessary to be installed. By removing this from `package.json` will give other devs have more understanding when learning typescript with eslint and jest about what need to be installed on the project.
-
由 GH Lee 提交于
Modified paths to absolute paths. - Deploying to Vercel - Base path
-
由 Austin Huang 提交于
Pull request for (Issue: Fix or remove the with-rebass example #16828). Just added some missing dependencies to the package.json of the example Fixes #16839
-
由 Mohamed Akram 提交于
`esModule: false` required for fonts to load.
-
- 20 9月, 2020 1 次提交
-
-
由 Daniel Lauzon 提交于
Reflect the change in `trailingSlash` parameter name. I found this because of the great warning on the build! ``` Warning: The "exportTrailingSlash" option has been renamed to "trailingSlash". Please update your next.config.js. ```
-
- 18 9月, 2020 3 次提交
-
-
由 Sam Dornan 提交于
-
由 Dan Laugharn 提交于
This comes up a lot in discussions/as an issue, so added a small comment about uploading files to the public directory. I'm not sure if it is worth a deeper technical explanation as well.
-
由 stefanprobst 提交于
currently, the `no-html-link-for-pages` eslint rule will look for the pages folder in either `pages`, or a custom folder provided via rule option. this PR adds support for also looking in `src/pages` by default. (sidenote: not sure about the custom pagesfolder path: does next support locations other than `pages` and `src/pages`)?) fixes #16426
-
- 17 9月, 2020 1 次提交
-
-
由 Long Ho 提交于
fix #16752 cc @thuringia
-
- 16 9月, 2020 3 次提交
-
-
由 Luis Alvarez D 提交于
Including prettier changes that were done automatically after the code sample became valid.
-
由 Joe Haddad 提交于
-
由 JJ Kasper 提交于
This makes sure we have the correct `asPath` value to prevent breaking hydration for `getServerSideProps` pages and doesn't re-use the `resolvedUrl` value for the `asPath` and instead creates a separate `resolvedAsPath` value that only removes the `_next/data` prefix from the path. Additional tests have been added in the `getServerSideProps` suite to ensure correct `asPath` with rewrites. Fixes: https://github.com/vercel/next.js/issues/17113
-
- 15 9月, 2020 9 次提交
-
-
由 Joe Haddad 提交于
-
由 JJ Kasper 提交于
On the latest beta of webpack 5 resolving fails with the below error and according to https://github.com/webpack/webpack/issues/11467 is due to the imports in this module not being fully specified. This adds the config mentioned in the thread to correct the resolving for this module. ```sh Failed to compile. -- 16:33:50.046 | ModuleNotFoundError: Module not found: Error: Can't resolve './assertThisInitialized' in '/vercel/f03cc85/node_modules/@babel/runtime/helpers/esm' 16:33:50.046 | > Build error occurred 16:33:50.047 | Error: > Build failed because of webpack errors 16:33:50.047 | at build (/vercel/f03cc85/node_modules/next/dist/build/index.js:15:918) 16:33:50.099 | error Command failed with exit code 1. ```
-
由 Joe Haddad 提交于
-
由 JJ Kasper 提交于
Fixes SSG pages that start with `/api` not being detected as SSG pages. This also adds tests to ensure this is working correctly in the `prerender` suite. x-ref: https://github.com/vercel/next.js/issues/17091
-
由 JJ Kasper 提交于
This continues off of https://github.com/vercel/next.js/pull/17081 and provides this normalized `asPath` value in the context provided to `getServerSideProps` to provide the consistent value since the request URL can vary between direct visit and client transition and the alternative requires building the URL each time manually. Kept this change separate from https://github.com/vercel/next.js/pull/17081 since this is addressing a separate issue and allows discussion separately. Closes: https://github.com/vercel/next.js/issues/16407
-
由 JJ Kasper 提交于
-
由 Joe Haddad 提交于
-
由 JJ Kasper 提交于
-
由 JJ Kasper 提交于
This normalizes the `asPath` for `getServerSideProps` and `getStaticProps` pages to ensure it matches the value that would show on the client instead of a) the output pathname when revalidating or generating a fallback or b) the `_next/data` URL on client transition. Fixes: https://github.com/vercel/next.js/issues/16542
-
- 14 9月, 2020 3 次提交
-
-
由 Jens Meindertsma 提交于
Earlier today #17038 was merged which I opened to fix a problem when using `webpack@5.0.0-beta.30` with Next.js using the new Webpack 5 support. In that PR, the only change was the renaming of a configuration key. I later discovered that the change on the Webpack side was different than I initially thought, and this meant that the fix I submittted to Next.js didn't work. This PR intends to fix the remaining problems. Webpack 5 now accepts a `environment` key that can be used to configure the target output. Previously, this was known as `ecmaVersion` and accepted a number. Now, `environment` accepts a configuration object with individual options. I've configured this in such a way where it resembles an ES5 environment: ```js environment: { arrowFunction: false, bigIntLiteral: false, const: false, destructuring: false, dynamicImport: false, forOf: false, module: false, } ```
-
由 Joe Haddad 提交于
-
由 Jens Meindertsma 提交于
This uses the "Expand directories" feature introduces in Prettier 2.0 to automatically format all supported file types. Also, I fixed some badly formatted files.
-
- 13 9月, 2020 1 次提交
-
-
由 Bogdan Chadkin 提交于
For some reason babel-plugin-syntax-jsx of babel 6 was used instead of babel 7 version.
-