- 08 6月, 2020 5 次提交
-
-
由 Jan Potoms 提交于
-
由 Akindolie Oluwatayo 提交于
Few text corrections.
-
由 not 提交于
-
由 Simon Goldin 提交于
Updating snapshot for https://github.com/vercel/next.js/pull/13732 where the `toMatchSnapshot` expectation moved to another test.
-
由 Jan Potoms 提交于
Discovered while doing https://github.com/vercel/next.js/pull/13333. `#` or `?` used to be stripped if there wasn't a value behind
-
- 07 6月, 2020 3 次提交
-
-
由 Tim Neutkens 提交于
Went through and removed a bunch of internal options which are just pass-through values of buildManifest Closes #13851
-
由 Rafael Almeida 提交于
I added a FAQ section to answer questions I see frequently. Motivation: https://github.com/vercel/next.js/discussions/13625#discussioncomment-23186
-
由 Todor Totev 提交于
Related to [11014](https://github.com/vercel/next.js/issues/11014)
-
- 06 6月, 2020 9 次提交
-
-
由 matamatanot 提交于
**add-comment.js** `writeFile` is not unique to `fs-extra`. **lib/find-page-file.ts** ref: #12026
-
-
由 Shu Uesugi 提交于
[ch579] Some README files in `examples/cms-*` were linking to a documentation markdown file inside the repo (e.g. `/docs/basic-features/pages.md`) instead of the documentation website. We should always link to the documentation website from an example README file because (1) the website has better UX and (2) as we’re creating the examples pages on `next-site` (https://github.com/vercel/next-site/pull/672), we’d like to avoid extra processing of markdown content.
-
由 Rafael Almeida 提交于
I added the commented code with the `AppContext` type to match the example from the [Custom App](https://nextjs.org/docs/advanced-features/custom-app) page. But since this is the TS page I think we could remove these comments and use a clean example, what do you think?
🤔 -
由 Ty Mick 提交于
So I can't *entirely* explain why, but I believe this fixes #13132.
🙈 I basically ended up looking around at other `_next` URLs (are those asset URLs?) around the project and seeing that they tended to use `delBasePath()` to remove the base path from the current page's path whenever it was used. When testing locally with the [repo submitted with the issue](https://github.com/robertovg/next-base-path-example), I no longer experience the constant page-reloading in dev mode when adding a query string to the URL. -
由 Joe Haddad 提交于
Fixes failure seen here: https://github.com/vercel/next.js/pull/13782#issuecomment-639563107
-
由 Dan Williams 提交于
- Fixes the Next.js `with-graphql-hooks` example so that data is prefetched during SSR: - The example was using an old version of `graphql-hooks` where SSR was broken - It had a bug where the `graphql-hooks` client passed in to the `AppTree` as a prop was not being used (instead was creating a new client every time) This resolves https://github.com/nearform/graphql-hooks/issues/439 for `graphql-hooks`.
-
由 Todor Totev 提交于
Related to [this](https://github.com/facebook/create-react-app/pull/8177). Let me know if you want me to change something.
-
由 Todor Totev 提交于
Related to [11014](https://github.com/vercel/next.js/issues/11014). Removed getInitialProps in favor of getStaticProps and getServerSideProps. Refactored one of the components from class to functional. Removed redundant imports. Removed React.FC/FunctionComponent. Added two build files to gitignore. Let me know if you want something to be changed.
-
- 05 6月, 2020 18 次提交
-
-
由 Luis Alvarez D 提交于
Based on https://github.com/vercel/next.js/pull/13607 - I created a new PR as I can't push changes to the initial PR. Migrated the Apollo client to use SSG, also removed the link to the live demo because I don't know who the owner is or how to update the deployment. The implementation is pretty simple and will be added to all the other Apollo examples
-
由 Todor Totev 提交于
[11014](https://github.com/vercel/next.js/issues/11014) Removed getInitialProps from _app
-
由 Todor Totev 提交于
Not much happening, the main page was converted from class to functional component.
-
由 Todor Totev 提交于
Related to [this](https://github.com/facebook/create-react-app/pull/8177). Let me know if you want me to change something.
-
由 Todor Totev 提交于
Related to [this](https://github.com/facebook/create-react-app/pull/8177). Let me know if you want me to change something.
-
由 JJ Kasper 提交于
Co-authored-by: Nkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
-
由 Shu Uesugi 提交于
❌ `cms-agility-cms`✅ `cms-agilitycms` See: https://github.com/vercel/next.js/tree/canary/examples/cms-agilitycms -
-
由 Adam Zacharski 提交于
dev doesn't seem to exist
-
由 Allen Hai 提交于
This PR removes the `next.config.js` file and renames the environment variable in `vercel.json` to use the new `NEXT_PUBLIC` prefix.
-
由 Joe Haddad 提交于
This removes a bunch of unnecessary `.gitignore`s and fixes some CMS examples that don't ignore `node_modules` etc.
-
由 Jazib Sawar 提交于
* Add Cosmic CMS Example * with native .env support, this file isn't needed anymore * FIX use path alias * Add cosmicjs package * Fix alias import in pages/api/preview * Added: react-imgix & lazysizes package * Load lazysizes in layout * Used imgix image with lazyloading * Added avatar imgix optimizations * EDITED: steps to install content, preview * EDITED: demo link * EDITED: Install step * EDITED: preview link steps * Edited: demo link * FIXED: object_slug * Screenshots * Fixed object_slug link * Update README.md * Fix: formatting issue * Updated readme and renamed .env to env.local * Sanity checks * Handle fallback data when expected * Added link to the example in other examples * Updated demo deployment * Added example to docs * minor lint fix * Remove manual download step * use vercel.json Co-authored-by: NTony Spiro <tspiro@tonyspiro.com> Co-authored-by: NLuis Alvarez <luis@vercel.com>
-
由 Joe Haddad 提交于
This removes the `with-dotenv` example in favor of a README that directs users to the docs.
-
由 JJ Kasper 提交于
This error isn't specific to just fallback SSG pages since any dynamic SSG page that is rewritten to can cause the `/_next/data` request to fail also since it currently derived from the the URL. This can also fail for `getServerSideProps` since it derives the `/_next/data` URL the same way so might need to be updated to show in that case also
-
由 Jan Potoms 提交于
Disambiguate between pages/index.js and pages/index/index.js so that they resolve differently. It all started with a bug in pagesmanifest that propagated throughout the codebase. After fixing pagesmanifest I was able to remove a few hacks here and there and more logic is shared now. especially the logic that resolves an entrypoint back into a route path. To sum up what happened: - `getRouteFromEntrypoint` is the inverse operation of `getPageFile` that's under `pages/_document.tsx` - `denormalizePagePath` is the inverse operation of `normalizePagePath`. Everything is refactored in terms of these operations, that makes their behavior uniform and easier to update/patch in a central place. Before there were subtle differences between those that made `index/index.js` hard to handle. Some potential follow up on this PR: - [`hot-reloader`](https://github.com/vercel/next.js/pull/13699/files#diff-6161346d2c5f4b7abc87059d8768c44bR207) still has one place that does very similar behavior to `getRouteFromEntrypoint`. It can probably be rewritten in terms of `getRouteFromEntrypoint`. - There are a few places where `denormalizePagePath(normalizePagePath(...))` is happening. This is a sign that `normalizePagePath` is doing some validation that is independent of its rewriting logic. That should probably be factored out in its own function. after that I should probably investigate whether `normalizePagePath` is even still needed at all. - a lot of code is doing `.replace(/\\/g, '')`. If wanted, that could be replaced with `normalizePathSep`. - It looks to me like some logic that's spread across the project can be centralized in 4 functions - `getRouteFromEntrypoint` (part of this PR) - its inverse `getEntrypointFromRoute` (already exists in `_document.tsx` as `getPageFile`) - `getRouteFromPageFile` - its inverse `getPageFileFromRoute` (already exists as `findPageFile ` in `server/lib/find-page-file.ts`) It could be beneficial to structure the code to keep these fuctionalities close together and name them similarly. - revise `index.amp` handling in pagesmanifest. I left it alone in this PR to keep it scoped, but it may be broken wrt nested index files as well. It might even make sense to reshape the pagesmanifest altogether to handle html/json/amp/... better
-
由 Vincent Voyer 提交于
-
由 Joe Haddad 提交于
The current [with-polyfills](https://github.com/vercel/next.js/blob/canary/examples/with-polyfills/) example is not the suggested way to add polyfills and is known to cause issues with bundling. The proper way to load polyfills is to include them as the first line in `pages/_app.js`, which I've updated the docs to say.
-
由 Todor Totev 提交于
Closes [7882](https://github.com/vercel/next.js/issues/7882). Created as requested by @timneutkens I'm unsure if that's exactly what you wanted, so let me know what you want me to change and I'll do it asap.
-
- 04 6月, 2020 5 次提交
-
-
由 Timothy 提交于
This pull request renames various instances of `now` to `vercel` etc. in order to match content that's being updated on the Vercel platform.
-
由 Vincent Voyer 提交于
When reading "In order to expose a variable to the browser you can prefix the variable with NEXT_PUBLIC_. For example:" I thought that I could maybe use something else than NEXT_PUBLIC_. I guess "have to" or similar would be better here, let me know
-
由 Shu Uesugi 提交于
[ch1981] Add the “Supported Browsers and Features” page. The content is taken mostly from the blog posts: [9.4](https://nextjs.org/blog/next-9-4), [9.3](https://nextjs.org/blog/next-9-3), and [9.1.7](https://nextjs.org/blog/next-9-1-7). - This page is added under “Basic Features” on the sidebar. - It still links to `with-polyfills` example, but [this example was updated recently](https://github.com/vercel/next.js/pull/11169/commits/04fbe0b7563d52d5feaf776cdc28b34edbb3a813). I simplified the README. - Removed the FAQ section on supported browsers. - On ["Customizing Babel Config"](https://nextjs.org/docs/advanced-features/customizing-babel-config), remove the list of presets which were outdated and instead link to [the preset file](https://github.com/vercel/next.js/blob/canary/packages/next/build/babel/preset.ts) so it’s always up to date.
-
由 Giulio Fagioli 提交于
Prefixed variables name with NEXT_PUBLIC_. Solving #13585 issue related to get undefined from process.env.VARNAME inside .env* files. I'm not secure if SESSION_SECRET_* need the prefix.
-
由 Todor Totev 提交于
Closes [13730](https://github.com/vercel/next.js/issues/13730) Brought back the ref implementation. Added another component that uses just the videojs-youtube package
-