- 30 6月, 2020 8 次提交
-
-
由 Jan Potoms 提交于
Avoid trailing slashes on urls that look like files. The redirect for `trailingSlash: true` will now look like: ``` Redirects ┌ source: /:path*/:file.:ext/ ├ destination: /:path*/:file.:ext └ permanent: true ┌ source: /:path*/:notfile([^/.]+) ├ destination: /:path*/:notfile/ └ permanent: true ``` The default still looks like: ``` Redirects ┌ source: /:path+/ ├ destination: /:path+ └ permanent: true ``` After this gets merged, I have a few optimizations planned on the normalization code that should reduce the client bundle a little and that consolidates the `trailingSlash` and `exportTrailingSlash` options
-
由 ralphilius 提交于
-
由 Joe Haddad 提交于
-
由 Joe Haddad 提交于
Fixes #14632 Fixes #14690
-
由 Arsalan Khattak 提交于
Change Data Fetching Method in Example with-mongodb-mongoose Fetch Data on Runtime (getServerSideProps) rather than Build Time (getStaticProps)
-
由 Joe Haddad 提交于
-
由 Pascal Pixel 提交于
The existing example gives an error on every hot reload, perhaps because of the way that an initial `useEffect` hook imports the `GLTFLoader` and it doesn't redo that on hot reload? Putting the component using the `useLoader` hook in a dynamic import seems to fix this. Open to better suggestions, this is kind of awkward to use still...
-
由 Joe Haddad 提交于
Closes #14682
-
- 29 6月, 2020 5 次提交
-
-
由 JJ Kasper 提交于
-
由 JJ Kasper 提交于
This updates `fetchNextData` to re-use the `getDataHref` function from `page-loader` which has more verbose handling to ensure the correct `/_next/data` URL is built. Re-using this logic ensures the `/_next/data` URL can still be built even when a mismatching `href` and `as` value is provided to `next/link`. This also fixes a case in `getDataHref` where optional values that weren't provided would fail to build the data href since the check requiring the param be present while interpolating the route values hasn't been updated to allow missing params for optional values. An additional test case has been added to the prerender suite to ensure the `/_next/data` URL is built correctly when mismatching `href` and `as` values are provided x-ref: https://github.com/vercel/next.js/discussions/14536 x-ref: https://github.com/vercel/next.js/discussions/9081#discussioncomment-31160 Closes: https://github.com/vercel/next.js/issues/14668
-
由 Jan Potoms 提交于
Add tests and fix for when the url contains query parameters. `router` now uses the same method for formatting url+as pair as `Link`, will be able to share code after https://github.com/vercel/next.js/pull/14633 is merged
-
由 Tim Neutkens 提交于
Preparation for a larger rewrite
-
由 Tim Neutkens 提交于
We've been meaning to change this code for a while
👍 - Changed the name from spr to incremental - Changed the code to be a class instead of using module scope variables
-
- 28 6月, 2020 7 次提交
-
-
由 Jan Potoms 提交于
Tweak PR stats message for req/sec metrics. I think they should warn when they are negative, not when positive
-
由 Luis Alvarez D 提交于
Closes https://github.com/vercel/next.js/issues/14570 Closes https://github.com/vercel/next.js/issues/14576 - The example features everything on the page in our docs while still being quite simple - Added a link to it in the documentation - Deprecated the with-now-env example
-
由 S M Mahmudul Hasan 提交于
Add @prefresh/next as dependency Closes #14607
-
由 Todor Totev 提交于
Closes [13709](https://github.com/vercel/next.js/issues/13709). The solution works, **(tested and confirmed with true and false flags with the latest next version)** though I am quite sure this is not the most elegant and proper way to implement it. I have spent the good part of yesterday and today's morning in order to make it more generic but since it's my first time working with anything related to webpack I have struggled miserably. Last, but not least I'm unsure if this is the most proper naming for the flag. Please, let me know what you want me to change and I'll get it done asap.
-
由 Tim Neutkens 提交于
-
-
由 Tim Neutkens 提交于
Makes sure this works correctly with webpack 5.
-
- 27 6月, 2020 5 次提交
-
-
-
由 Tim Neutkens 提交于
-
由 S M Mahmudul Hasan 提交于
Closes: #14595
-
由 JJ Kasper 提交于
This moves the custom-routes configs outside of the experimental section to prepare them for being made stable Fixes: https://github.com/vercel/next.js/issues/14184
-
由 James Bowes 提交于
Keeping up with section headers in markdown is fun :) Co-authored-by: Nkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
-
- 26 6月, 2020 7 次提交
-
-
由 matamatanot 提交于
-
由 Tim Neutkens 提交于
-
由 Tim Neutkens 提交于
Simplifies on-demand-entries a bit.
-
由 Luis Alvarez D 提交于
[ch4109] Closes https://github.com/vercel/next.js/issues/14500 Our current docs for `next/router` use examples from both `useRouter` and `import Router from 'next/router'`, with this PR I'm unifying the API into `useRouter` (`withRouter` is still going to be mentioned multiple times as it is the HOC alternative) and no longer mentioning that you can import a global `Router` object from `next/router`, not sure if I should mention it at least once but that didn't seem to be required. I also did some structural changes to the docs for `next/router`, now every method starts with a description, then the implementation and explanation of the parameters of the method, and then the usage example, because every method uses the same `Usage` title the hash for them would be something like `#usage`, `#usage-1`, `#usage-2`, e.t.c, so I'm not very happy with this but it looks good. Feedback wanted
🙏 -
由 JJ Kasper 提交于
-
由 Jan Potoms 提交于
Noticed while trying to get https://github.com/vercel/next.js/pull/14442 tests to pass. The backslash needs to be double escaped in snapshots. Forward slashes aren't escaped, maybe that was the assumption when this test was written?
-
- 25 6月, 2020 4 次提交
-
-
由 Hyeungshik Jung 提交于
Basically this PR adds Next.js 's default TypeScript setting and integrates [@storybook/preset-typescript](https://github.com/storybookjs/presets/tree/master/packages/preset-typescript) into original [with-storybook](https://github.com/vercel/next.js/tree/canary/examples/with-storybook) example. However, I thought it may save time for someone who are planning to use storybook with next.js and TypeScript :)
-
由 Anthony Short 提交于
* Avoid adding basePath when it's not needed When using the `basePath` setting, on pages with params it will fire a router change. This will pass the url pathname in the `as` param using the `getUrl()` function. This means the `as` path will be sent through already including the `basePath`, leading to `/basePath/basePath/path` which will cause the router to throw an error. * lint * Add test case and ensure removal * Make sure to re-add before changeState Co-authored-by: NJJ Kasper <jj@jjsweb.site>
-
由 Nico Domino 提交于
I accidentally deleted the repo the original PR was based upon haha. Anyway, the code was still on my computer so here's a new PR with the same content. I addressed the latest comments from @lfades in the old PR (https://github.com/vercel/next.js/pull/14180) I also updated `next-auth` to `2.1.0` and updated the `<Provider />` component in `_app.js` that needed updating since the latest release. Let me know if I missed anything else, otherwise I think this should be good to go
👍 -
由 Oğuzcan Köse 提交于
* Update index.js * Update index.js * Update examples/with-firebase-authentication/pages/index.js Co-authored-by: NLuis Alvarez D <luis@vercel.com>
-
- 24 6月, 2020 4 次提交
-
-
由 James Mosier 提交于
Warn users and revert their `devtool` when they manually change the `devtool` in development mode. For this addition, I check to ensure the `devtool` is custom (i.e. different than what is set by Next) and has a value (`false` is fine as a custom `devtool`!). As described in [this issue (13963)](https://github.com/vercel/next.js/issues/13963), changing the `devtool` in development mode can cause issues with performance. Fixes #13963
-
由 Vinci Rufus 提交于
It looks like the docker multi-stage file wasn't building, so fixed that and also cleaned up some of the steps
-
由 Steven Bell 提交于
Usage of `apollo/react-ssr` was removed when the example moved to SSG.
-
由 JJ Kasper 提交于
-