Michael McQuade
d9f1cf007f
Fix error in example ( #20934 )
2021-01-11 10:28:31 +01:00
Michael McQuade
8d7e7d526c
Update PostCSS plugin list in README ( #20956 )
2021-01-11 10:27:21 +01:00
Victor Assis
86bb064578
Improve with firebase cloud messaging ( #20868 )
2021-01-11 10:14:14 +01:00
Tim Neutkens
90ad2cbc44
Update profiling approach to cover webpack runs ( #20900 )
2021-01-09 20:12:13 -05:00
JJ Kasper
8bdff57b15
Update redbox tests ( #20866 )
...
This adds retrying for getting redbox content and ensures the `next.config.js` file is cleaned up for the dynamic-routing test suite.
x-ref: https://github.com/vercel/next.js/pull/20786#issuecomment-755929891
2021-01-07 18:06:40 +00:00
Daniel Stumme
d49c47427b
Adding small note to ENV documentation ( #20860 )
...
This single sentence addition would have saved me about a day of troubleshooting. This doc doesn't mention how the inline occurs. The only place I could eventually find that mentions this is the server & public runtime config pages.
2021-01-07 16:54:15 +00:00
Zain Fathoni
77a2eeb194
Fix an error in Kontent CMS example caused by a file name typo ( #20863 )
...
![image](https://user-images.githubusercontent.com/6315466/103914132-57f17500-5144-11eb-9a21-ff27bea14f29.png )
2021-01-07 16:18:01 +00:00
tarunama
629a7e8085
refactor(next): client/index.tsx ( #20806 )
...
## summary
- add return types
- move `locale` variable const from let
- ~use [strict equality](https://github.com/vercel/next.js/pull/20806/files#diff-2433946f9a058f1b070138d12c20f10a9128e46408033629181f9f7fc3b9b9b2R275 )~
2021-01-07 15:02:10 +00:00
Luc Leray
b442acbe1c
Replace zeit/next.js
with vercel/next.js
( #20849 )
2021-01-07 08:41:04 -05:00
Jeremy Balog
bb05e42698
Fix typo in error markdown ( #20825 )
2021-01-07 10:22:43 +01:00
Luc Leray
8eaabe2fb0
Fix deploy buttons URLs ( #20834 )
...
Fix all deploy button URLs in the Next.js repo to follow the following format:
```
https://vercel.com/new/git/external?repository-url=https://github.com/vercel/next.js/tree/canary/examples/ <EXAMPLE_NAME>&project-name=<EXAMPLE_NAME>&repository-name=<EXAMPLE_NAME>
```
The detailed docs for the Deploy Button can be found here: https://vercel.com/docs/more/deploy-button .
Also updates legacy Vercel import flow URLs (starting with vercel.com/import or with vercel.com/new/project), to use the new vercel.com/new URLs.
---
For example, for the `hello-world` example:
The URL is https://vercel.com/new/git/external?repository-url=https://github.com/vercel/next.js/tree/canary/examples/hello-world&project-name=hello-world&repository-name=hello-world
And the deploy button looks like this:
[![Deploy with Vercel](https://vercel.com/button )](https://vercel.com/new/git/external?repository-url=https://github.com/vercel/next.js/tree/canary/examples/hello-world&project-name=hello-world&repository-name=hello-world )
---
For reference, I used the following regexes to search for the incorrect URLs
```
\(https://vercel.com/import/git\?s=https://github.com/vercel/next.js/tree/canary/examples/(.*) \)
\(https://vercel.com/import/git\?c=1&s=https://github.com/vercel/next.js/tree/canary/examples/ ([^&]*)(.*)\)
\(https://vercel.com/import/project\?template=https://github.com/vercel/next.js/tree/canary/examples/(.*) \)
https://vercel.com/import/git
https://vercel.com/import/select-scope
https://vercel.com/import
https://vercel.com/new/project
```
2021-01-07 01:40:29 +00:00
Joe Haddad
ef32e16fb1
v10.0.5
2021-01-06 18:30:00 -05:00
Joe Haddad
b2c6115bf2
v10.0.5-canary.12
2021-01-06 15:13:19 -05:00
Simon Taggart
66a49721d5
feat: add Twilio Paste example ( #20587 )
...
* feat: add Twilio Paste example
* Updated readme
Co-authored-by: Luis Alvarez <luis@vercel.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-01-06 13:49:57 -05:00
Bar
54102b0a04
Update gtm.js ( #20807 )
2021-01-06 13:15:26 -05:00
Joe Haddad
b580bea250
tests: add isReady
field test for TS ( #20821 )
2021-01-06 13:14:52 -05:00
Shu Uesugi
817cffdcbe
Use vercel.app for blog starter URL ( #20820 )
...
Rename https://next-blog-starter.now.sh to https://next-blog-starter.vercel.app (@lfades renamed the domain name)
2021-01-06 18:13:40 +00:00
David ALLIX
79e5615d2b
Add missing isReady declaration to NextRouter type ( #20819 )
...
Follow https://github.com/vercel/next.js/pull/20628
2021-01-06 17:44:35 +00:00
Sebastian König
5fc8d48732
Added with-mqtt-js example ( #17939 )
...
* Added with-mqtt-js example
* Fixed eslint/prettier errors
* Update README.md
* Updated with-mqtt-js to latest next/react versions, WIP: Refactoring useMqtt()
* A2PC
* Working example, unrefactored
* A2PC
* Ran prettier
* Used NEXT_PUBLIC_ prefix instead of keys as props
* Updated readme and added .env.local.example
Co-authored-by: Sebastian König <sebastian_koenig@cotyinc.com>
Co-authored-by: Luis Alvarez D <luis@vercel.com>
2021-01-06 12:06:56 -05:00
Joe Haddad
35a02d97b7
v10.0.5-canary.11
2021-01-06 11:28:41 -05:00
Farhan Ullah
9a73db703f
Fix: Build time error for with-mysql example #19635 ( #19636 )
2021-01-06 11:27:59 -05:00
Damien Varron
55afe80c31
Only prefetch Link if router is in context ( #19857 )
...
Fixes #16864
The `router` can be missing in a test environment when trying to render a `Link` component. This PR bails out of `router.prefetch()` when `router` is missing.
The alternative is for users to mock `next/link` or to mock the `router` and wrap their test components.
Please let me know any feedback.
2021-01-06 16:19:57 +00:00
Michael Aufreiter
ccf26a850d
Guard useSwr() to avoid sending invalid request ( #20671 )
2021-01-06 10:59:18 -05:00
Tim Neutkens
fb9ca49401
Update static file serving doc to mention Next.js 10 ( #20815 )
...
Fixes #20403
2021-01-06 15:21:34 +00:00
JJ Kasper
991ad9225a
Update error for mis-matching path in getStaticPaths ( #20767 )
...
This updates the error shown when a path doesn't match the dynamic route in `getStaticPaths` to not include the `locale` since this isn't considered when matching against the dynamic route.
2021-01-06 10:27:32 +00:00
JJ Kasper
b9ba264bd6
Ensure i18n + API rewrite is handled correctly ( #20751 )
...
This ensures rewrites to API routes with i18n enabled handles as an API route correctly. This also adds tests for API routes in the i18n test suite
Fixes: https://github.com/vercel/next.js/issues/20725
2021-01-06 09:54:45 +00:00
Benjamin Bender
1a3adaa5d9
Fix mini typo in with-cookie-auth-fauna-example ( #20808 )
...
Fix mini typo
2021-01-06 09:13:45 +00:00
Lee Robinson
9afc0f58c4
Add docs for custom image loaders. ( #20788 )
...
Docs for https://github.com/vercel/next.js/pull/20216/ .
2021-01-06 02:16:09 +00:00
Joe Haddad
9f6bcd47b6
v10.0.5-canary.10
2021-01-05 20:20:36 -05:00
JJ Kasper
47b7660aec
Ensure path starts with / when deleting index basePath with query ( #20766 )
...
This is a follow-up to https://github.com/vercel/next.js/pull/20596 and https://github.com/vercel/next.js/pull/20658 ensuring the `as` value is prefixed with the `basePath` correctly with a query. This updates the test to also ensure no errors are shown when a query is present on the index `basePath` route.
Fixes: https://github.com/vercel/next.js/pull/20757#issuecomment-754338510
2021-01-06 01:20:04 +00:00
Josh
51f2a530d6
Updated deploy button URL ( #20756 )
...
* Updated deploy button URL
* Update bottom button
2021-01-05 17:36:33 -05:00
Thomas Wang
356bcdec03
Move window
check to after initializing Firebase ( #20764 )
...
You can initialize the Firebase app instance without checking for window, but it is required for using the analytics module.
2021-01-05 21:59:37 +00:00
Alex Castle
c8bc17f330
Support for custom image loaders via image component prop ( #20216 )
...
This is a #19325 reconfigured to support a loader passed in via a `loader` prop on the Image component, rather than using a config-based approach.
The idea is that applications wanting to use a custom loader will create a wrapper element for the image component that incorporates that loader. See a simple example of this pattern in the integration tests.
This solution is similar to the one prototyped by @ricokahler in #20213 and described at https://github.com/vercel/next.js/issues/18606#issuecomment-720149156
---
Closes #19325
Fixes #18606
2021-01-05 20:51:34 +00:00
kaykdm
b6c6770cd9
Fix with-react-intl example ( #20763 )
...
Co-authored-by: Kanta Kodama <kanta.kodama@linecorp.com>
2021-01-05 11:44:40 -05:00
Tom
6fd877ff34
fix deploy button + create-next-app command ( #20777 )
2021-01-05 11:43:27 -05:00
Tom
266a4d33b1
fix deploy button ( #20774 )
2021-01-05 11:42:23 -05:00
tarunama
575fcf3fcf
refactor(client): add return types ( #20728 )
...
## summary
- Explicitly define return types
- Add type of [Observer](https://github.com/vercel/next.js/pull/20728/files#diff-5de64b97b2f26e4e41d197a8295e8750825c75b8ca557a4b947a4c3569345974R7 )
2021-01-05 15:11:37 +00:00
JJ Kasper
f8e44b9425
Add documentation for rewrite params query passing behavior ( #20757 )
...
Closes: https://github.com/vercel/next.js/issues/20197
2021-01-05 14:47:08 +00:00
Tuan Nguyen
873bf5dd76
Remove an undefined parameter ( #20762 )
...
`getLoginSession` takes only one argument
2021-01-05 14:26:06 +00:00
Tim Neutkens
a1a4af2d32
Bring back indicator documentation with a note that the feature has been removed
2021-01-05 12:47:52 +01:00
JJ Kasper
73a2bd6a4b
Add pr section to azure config ( #20758 )
...
Adds the `pr` section from https://docs.microsoft.com/en-us/azure/devops/pipelines/repos/github?view=azure-devops&tabs=yaml#pr-triggers to filter paths that don't require test runs on PRs.
2021-01-05 01:41:42 +00:00
Jan Varho
b944b06f30
Fix notFound false pages returning 404 ( #19861 )
...
Currently pages with `notFound: false` from `getServerSideProps` behave the same as `notFound: true`, i.e. just having the key is enough to result in a 404. This fixes the check in render.tsx and adds tests for it.
2021-01-04 22:43:53 +00:00
Lee Robinson
5678d24f56
Add new example for rate limiting API routes. ( #19509 )
...
Adds an example using `lru-cache` to implement a simple rate limiter for API routes ([Serverless Functions](https://vercel.com/docs/serverless-functions/introduction )).
**Demo: https://nextjs-rate-limit.vercel.app/ **
2021-01-04 22:19:31 +00:00
Jesse Jafa
0d98f370aa
Clarify ctx.query type on getServerSideProps ( #20327 )
...
Closes https://github.com/vercel/next.js/issues/19481
The current text implies `query` is a string. IMO it would be better if it clarified that `query` is an object containing the query string's keys and values
Edit:
Relevant docs url: https://nextjs.org/docs/basic-features/data-fetching#getserversideprops-server-side-rendering
2021-01-04 21:58:56 +00:00
zoomdong
87c97fd3e7
Update with-antd example ( #19699 )
...
https://ant.design/docs/react/getting-started#Import-on-Demand
At the document, We don't need to use `babel-import-plugin` to `Import on Demand`.
2021-01-04 21:34:28 +00:00
Manaia Junior
2e8259ffdc
Update withUser to useUser in README.md of the example with-iron-session ( #20723 )
2021-01-04 21:13:32 +00:00
Justin Philpott
2a4887c30a
New example: /with-storybook-styled-jsx-scss ( #18570 )
...
Hi,
I'm submitting this PR for consideration as a new example app showing Styled JSX with SCSS working inside and outside storybook with example components.
Only known issue: I noticed that when running this example with:
`$ yarn next ./examples/with-storybook-styled-jsx-scss`
I receive the following error:
```
error - ./pages/_app.js
Error: [BABEL] .../next.js/examples/with-storybook-styled-jsx-scss/pages/_app.js: Cannot find module 'styled-jsx-plugin-sass' (While processing: ".../next.js/node_modules/next/babel.js")
```
However I notice that this same missing module error is triggered when running this existing example app "with-styled-jsx-scss".
Any changes/tweaks needed?
Thanks!
2021-01-04 20:46:34 +00:00
mongolyy
7f23954f7e
Update database config explanation in with-firebase-app example ( #20709 )
...
I made the following changes.
- Addition of procedure for setting private_key
- Addition of procedure for creating a database and setting database_url
2021-01-04 20:25:57 +00:00
Joe Haddad
cb50b040ea
fix(next/head): assign bool attrs to match server ( #20748 )
...
This pull request correctly assigns boolean attributes for `<script />` to match the element as it is created by a server-side render.
Prior to this pull request, we'd double-execute `<script>` tags with the `async`, `defer`, or `nomodule` property.
---
Fixes #9070
2021-01-04 19:57:52 +00:00
matamatanot
fc75baeb3c
Move sizes var declaration just before used ( #18402 )
...
As with `const width`, it should be declared just before it is used.
2021-01-04 18:09:07 +00:00