JJ Kasper
e7d96f77bd
Add test for dynamic routing/webpack HMR bug ( #8061 )
...
* Add failing test for dynamic routing/webpack HMR bug
* Remove un-used args from onDemandEntryHandler
* update to latest webpack with escaping
2019-08-01 11:17:42 -05:00
jordan-jarolim
9ee4f049ff
contributing guide rename initialprops ( #8203 )
2019-08-01 11:55:53 -04:00
Joe Haddad
ac31f1636e
Add some notes about Now deployment ( #8205 )
2019-08-01 11:08:21 -04:00
Joe Haddad
3f2027d583
Update TypeScript Instructions ( #8200 )
...
* Update TypeScript Instructions
* next dev => npm run dev
* Break line
2019-08-01 09:13:17 -04:00
Joe Haddad
92ea3b6e9d
Revert "Don't require test job for deploying" ( #8199 )
...
This reverts commit 00e50144c6
.
2019-08-01 12:26:31 +01:00
JJ Kasper
00e50144c6
Don't require test job for deploying ( #8194 )
2019-07-31 19:15:21 -04:00
Joe Haddad
8a74f0ae71
Golf page-loader ( #8190 )
2019-07-31 16:14:54 -04:00
Joe Haddad
00b56c6ede
v9.0.3
2019-07-31 16:14:36 -04:00
JJ Kasper
dc9e270898
Update examples for Apollo with AppTree ( #8180 )
...
* Update examples for Apollo with AppTree
* Fix apolloClient being overwritten when rendering AppTree
2019-07-31 16:07:14 -04:00
JJ Kasper
22aee7f246
tests(circleci): Update chromedriver to latest ( #8192 )
2019-07-31 16:07:14 -04:00
Peter McAree
6c2534362e
Fix typo within blog-starter example ( #8182 )
2019-07-30 16:49:12 -05:00
JJ Kasper
858f4eb8ec
v9.0.3-canary.6
2019-07-30 16:35:15 -05:00
Natalie Marleny
b8aee7af77
fix: Add error message for duplicate route param name ( #8047 )
...
* Add error message for duplicate slug name within a dynamic path
* Update based on feedback
Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
* WIP - committed with no-verify - progress
Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
* Remove old test placeholder
* Add test for re-used names
2019-07-30 16:21:36 -05:00
Joe Haddad
c61f6c1200
Test environment code should target Node ( #8181 )
2019-07-30 16:28:48 -04:00
JJ Kasper
4850bd03ef
Provide AppTree to getInitialProps for getDataFromTree ( #7732 )
...
* Provide AppContainer to getInitialProps for getDataFromTree
* Update to only pass AppTree component instead of AppContainer
* Clean up props and remove extra imports
* Make updates from review
* De-dupe AppTree a bit
* Re-use wrapApp in router
* Remove un-needed change
* revert changes to examples until on stable
* Add test for AppTree
2019-07-30 14:00:19 -04:00
Gabor Ottlik
72098328cf
Fix a typo in README ( #8177 )
2019-07-30 16:17:26 +01:00
Lukáš Huvar
3e03fee278
Fix build only server-side /api/index.js
( #8167 )
...
* Build error for index API routes
* Fix server build
2019-07-30 13:52:43 +01:00
Jason Miller
9659b4b555
Optional Server Compression ( #8066 )
...
* Add `compress` option to enable gzip compression in `next start`.
* Add compress option, defaulting to true
* Disable compression for serverless target
* Pin compression dep
Co-Authored-By: Joe Haddad <timer150@gmail.com>
* Pin compression types
Co-Authored-By: Joe Haddad <timer150@gmail.com>
* lockfile update for locked compression deps
* simplify compression middleware application
* add test for compression
2019-07-29 14:35:09 -04:00
Joe Haddad
df213f7aab
Include scheduler
in React bundle ( #8164 )
2019-07-29 13:42:57 -04:00
JJ Kasper
7b33fbbfe6
v9.0.3-canary.5
2019-07-29 11:54:02 -05:00
Joe Haddad
91f60cdadf
refactor(webpack): extract splitChunksConfig ( #8161 )
2019-07-29 12:19:31 -04:00
Joe Haddad
25fd3f86a3
Update missed lockfile
2019-07-29 11:30:33 -04:00
Sebastian Silbermann
273c6f0d66
docs: Document change concerning api-routes ( #8121 )
...
* Update UPGRADING.md
* Update UPGRADING.md
2019-07-29 11:12:29 -04:00
Felix Mosheev
730f9cc472
Update webpack to 4.38.0 ( #8147 )
2019-07-29 11:01:58 -04:00
Rakan Nimer
8f77713028
Add 2 AWS Amplify SSR examples one with JS and one with TS ( #8073 )
2019-07-29 09:44:05 -05:00
Lukáš Huvar
722d5d7703
Improve docs for API ( #8155 )
...
* Move API types to API section
* Improve wording
2019-07-29 10:29:17 +01:00
JJ Kasper
4bcf6aabe7
Allow manually setting amphtml and canonical links ( #8129 )
2019-07-29 08:18:23 +01:00
Piotr Tomasik
78775954f2
fix regex to not match any string with double underscore ( #8153 )
...
* fix regex to not match any string with double underscore
* add test for __ in env name and make existing test more descriptive.
2019-07-29 08:17:10 +01:00
Tim Neutkens
482f454c7a
Remove kodiak
2019-07-28 12:52:37 +01:00
Lachlan Campbell
6f89c36207
Upgrade with-mdx example from mdx 0.16 → 1.1 ( #8142 )
2019-07-27 19:49:08 +01:00
Lukáš Huvar
8dc5d22104
Remove next.config.js ( #8139 )
2019-07-27 19:46:40 +01:00
Youkyoung.Park
c4704fbd9e
fix spelling in tsconfig.js of readme.md ( #8138 )
2019-07-27 16:50:14 +01:00
Tim Neutkens
2b1a5c3eb4
v9.0.3-canary.4
2019-07-27 11:42:02 +01:00
Oğuz Kılıç
4ff6f5f514
update README.md for with-http2 example ( #8131 )
2019-07-27 10:39:09 +02:00
JJ Kasper
13fa2828c2
Add missing key prop for array elements in _document ( #8132 )
...
* Add missing keys for array elements
* Add test for missing key prop in app-document
2019-07-27 10:34:29 +02:00
Alexey Boklin
f5edfebc82
Docs: Fix comments in with-sentry example (server.js) ( #8125 )
2019-07-26 14:51:47 -05:00
Adam Misiorny
68e3223cd8
Improve type definitions ( #8117 )
2019-07-26 13:09:16 -05:00
Thijs Koerselman
8243af2519
Update example with firebase auth ( #8127 )
...
* Add sessions folder to prevent errors on first run
* Update readme steps to reflect current firebase ui
* Use default directory for sessions-file-store
* Remove obsolete databaseURL from config
2019-07-26 12:14:14 -05:00
Lukáš Huvar
cc6fe5fdf9
Fixes problem with API and wrong regex ( #8126 )
...
* Fixes regex for client bundel. Fixes #8115
* Add test
* Update test/integration/api-support/test/index.test.js
Co-Authored-By: Tim Neutkens <tim@timneutkens.nl>
* Update test/integration/api-support/test/index.test.js
Co-Authored-By: Tim Neutkens <tim@timneutkens.nl>
2019-07-26 17:02:12 +02:00
Luis Fernando Alvarez D
a2b2a2a3e8
Auth example with api routes ( #8118 )
2019-07-25 18:52:41 -05:00
Olivier Tassinari
71f9288a54
Fix onError prop-type warning in Link ( #8021 )
...
The warning
> Warning: Failed prop type: Link: unknown props found: onError
can happen in this case:
```tsx
import * as React from 'react';
import NextLink, { LinkProps as NextLinkProps } from 'next/link';
type NextComposedProps = React.AnchorHTMLAttributes<HTMLAnchorElement> & NextLinkProps;
const NextComposed = React.forwardRef<HTMLAnchorElement, NextComposedProps>((props, ref) => {
const { as, href, replace, scroll, passHref, shallow, prefetch, onError, ...other } = props;
return (
<NextLink
href={href}
prefetch={prefetch}
as={as}
replace={replace}
scroll={scroll}
shallow={shallow}
passHref={passHref}
onError={onError}
>
<a ref={ref} {...other} />
</NextLink>
);
});
```
*Taken from Material-UI Next.js integration example*
2019-07-25 18:52:27 +00:00
Joe Haddad
22b58b1c66
v9.0.3-canary.3
2019-07-25 13:56:34 -04:00
Lukáš Huvar
bbcb448e87
Fix index.js for API routes ( #8112 )
...
This fixes the problem with `/pages/api/index.js` not creating serverless function. Fixes #8111
2019-07-25 17:39:29 +00:00
Sergio Garcia Mondaray
eae1f6b749
Dynamic routes clarification ( #8110 )
...
As talked in https://github.com/zeit/next.js/issues/8101 dynamic routing documentation could be confusing. This PR tries to clarify it a bit.
2019-07-25 17:07:59 +00:00
Joe Haddad
8b0a93b0ed
Fix extension for module/nomodule
2019-07-25 12:44:56 -04:00
Gerald Monaco
e68307df3a
Add next-head-count & remove next-head class ( #8020 )
...
Fixes #3494
Removes `class="next-head"` from the children of the `<Head>` component. Instead, a single sentinel meta element named `next-head-count` is appended. The content is the number of contiguous elements immediately preceding the sentinel that _would have had_ the `class="next-head"` attribute.
During an update, instead of searching for `class="next-head"`, the sentinel is located and the N previous elements are considered candidates for `oldTags`. New elements are inserted before the sentinel, and finally the sentinel is updated to reflect the new count.
2019-07-25 16:39:09 +00:00
Lukáš Huvar
3ee5ec4412
Configuration for body parsing size limit ( #7896 )
...
This PR introduces the possibility to change the size of the parsed body. This brings features like:
- Adjusting the size of the incoming message
- Better security
2019-07-25 15:43:55 +00:00
Lukáš Huvar
83a3903fc2
HTTP methods docs and REST example ( #8108 )
...
* HTTP methods docs and REST example
* Update packages/next/README.md
Co-Authored-By: Joe Haddad <timer150@gmail.com>
* Update examples/api-routes-rest/README.md
Co-Authored-By: Joe Haddad <timer150@gmail.com>
* Fix standard
2019-07-25 11:18:38 -04:00
Joe Haddad
f8b56da7e1
Revert "Improve type definitions" ( #8098 )
...
Reverts zeit/next.js#8097
This PR caused bundle sizes to increase. We need to fix this bug before we continue adding invalid TypeScript exports to our code.
2019-07-25 13:58:24 +00:00
Joe Haddad
d006a24d8f
Require label to merge for now
2019-07-25 09:46:46 -04:00