Jack Tomaszewski
17773a6203
Correct info about export limitations ( #7729 )
...
* Correct info about export limitations
In `next export` `req` and `res` objects are present, but they are empty ( https://github.com/zeit/next.js/blob/master/packages/next/export/worker.js#L42-L43 ).
* Update README.md
2019-07-16 13:38:17 +02:00
Eduardo P. Rivero
2c28e12220
feat(web): Passing actual status code instead 200 ( #7735 )
2019-07-16 13:36:49 +02:00
Adam Misiorny
90280c864b
Add support for 412 Precondition Failed status for static files ( #7944 )
...
* Add support for Precondition Failed status for static files
* Add test
* Trigger tests
* Update next-server.ts
2019-07-16 13:30:29 +02:00
JJ Kasper
e5e74dabdc
Add warning for experimental config usage ( #7985 )
...
* Add warning for experimental config usage
* Update config.ts
2019-07-16 13:07:07 +02:00
Lukáš Huvar
718a36e127
Fix build for API routes conflict pages ( #7992 )
...
* Fixes #7991
* Fix tests
2019-07-16 12:59:09 +02:00
Joe Haddad
571eb9817a
v9.0.2-canary.0
2019-07-15 20:13:10 -04:00
JJ Kasper
a10b3dff33
Add default value for pageConfig for custom _error ( #7984 )
...
* Add default value for pageConfig for custom _error
* Add serverless mode for custom-error test
2019-07-15 17:06:16 -07:00
Joe Haddad
590a3adefe
Only copy public/
directory if enabled ( #7988 )
2019-07-15 16:33:20 -07:00
Lukáš Huvar
c6928dcfd8
Fix GIP type in /_error
page ( #7952 )
2019-07-15 16:16:40 -07:00
Joe Haddad
60b4e678b0
Fix client-side hydration with dynamic routes ( #7986 )
...
* Add a test for the hash case
* Add a special hydration option to router
* Add additional tests wrt scrolling
2019-07-15 16:07:04 -07:00
JJ Kasper
86b6a4b6fe
Add handling for invalid page config ( #7921 )
2019-07-15 13:54:35 -07:00
JJ Kasper
e7440858db
Add empty publicRuntimeConfig to serverless tests ( #7948 )
...
to make sure error isn't thrown when not used
2019-07-15 22:03:16 +02:00
Lukáš Huvar
be3eab2ad7
Example for API routes with middleware ( #7958 )
2019-07-15 17:39:16 +02:00
Natalie Marleny
e68a5a793a
fix: Ensure ergonomic handling of non-page in ./pages/
( #7955 )
...
* Update autoExport wording to automatic static optimization
* Add sufficiently informative error message
- Update other Next error message for consistency
* Implement feedback - add missing character
Co-Authored-By: Lukáš Huvar <lukas@huvar.cz>
* Fix TypeScript errors
* Update test from autoExport to automatic static optimization
- Also reflect new wording of error message for readability
* Add test for handle non-page in pages
- When target: severless
2019-07-15 17:16:35 +02:00
Yuji Kinjo
cdf4f0a20d
Fix example with-firebase-hosting-and-typescript ( #7971 )
2019-07-15 10:04:44 -05:00
JJ Kasper
fad4ec3958
Don't externalize ssr-prepass if added by user ( #7966 )
2019-07-15 16:41:53 +02:00
Felix Mosheev
8c5e85d44c
Check if dynamicOptions has the deprecated method
property, ( #7973 )
...
* Check if dynamicOptions has the deprecated `method` property, closes #7972
* Update dynamic.tsx
2019-07-15 16:35:36 +02:00
Natalie Marleny
8e467bee1f
[Enhancement]: Refactor circleCI config ( #7963 )
...
* Refactor bash commands in circleCI config
- Split into multiple lines for easier readability
* De-duplicate circleCI commands using parameter
- Reference: https://circleci.com/docs/2.0/configuration-reference/
2019-07-15 16:04:36 +02:00
JJ Kasper
4adef73ab8
Update link ref handling to clean up previous listeners ( #7943 )
2019-07-14 10:23:13 -07:00
JJ Kasper
10614e8465
Replace windows backslashes with forward ( #7942 )
...
slashes for better handling
2019-07-13 22:24:44 +02:00
Anthony Maki
002ddbe1b9
Checks if object is not empty instead of whether the reference (object) is truthy ( #7911 )
...
* Checks if object is not empty instead of whether the reference (object) is truthy
* Update publicRuntimeConfig check
2019-07-12 15:16:56 -07:00
RyotArch
728fe74e3c
Added example for rbx and bulma-pro ( #7728 )
2019-07-12 16:45:36 -05:00
not
a4355b0d0f
Prevent blocking while hidden ( #7930 )
...
Allows clickthrough after indicator has been hidden.
2019-07-12 22:59:26 +02:00
Sudhir Mitharwal
9b7a2f5ab4
Update docs for AMP export behavior ( #7940 )
...
In versions prior to ^9, default export with AMP was to create a
`index.html` file for each page. This has changed in ^9.0 with intruduction of a new
configuration options `exportTrailingSlash`. Current docs for AMP
exports are not correct for this behaviour.
Fixes #7931
2019-07-12 12:53:06 -07:00
Joe Haddad
45f80409dc
Remove duplicated client code ( #7907 )
2019-07-11 23:23:07 +02:00
Joe Haddad
47160fb0aa
v9.0.1
2019-07-11 16:31:30 -04:00
Joe Haddad
a7fbd308be
Adjust README to mention Link
2019-07-11 16:25:35 -04:00
Joe Haddad
bbe1e0f8a6
v9.0.1-canary.2
2019-07-11 14:53:10 -04:00
Luis Fernando Alvarez D
7b25e2995e
Export types for link props ( #7905 )
...
* export LinkProps
* Add test
2019-07-11 14:52:21 -04:00
Aaron Scherer
8078273a7f
Adding a note about babelrc ( #7897 )
...
* Adding a note about babelrc
Related to https://github.com/zeit/next.js/issues/7803
* Update UPGRADING.md
2019-07-11 13:36:05 -04:00
Luis Fernando Alvarez D
b94123ccc9
Improve exported router types ( #7853 )
...
* Added the RouteUrl type and improved router types
* Added more tests for router types
* Add build test for typescript types
* Add next-env.d.ts to the typescript test
* Removed next-env.d.ts
* Added next-env.d.ts to gitignore
* Remove route url re-exports
* renamed PublicRouterInstance to be NextRouter
* export the Url type
* Replaced BaseRouter with NextRouter in server/utils
* Don't export the Url type
* Update tsconfig.json
2019-07-11 13:35:39 -04:00
Joe Haddad
13cf664898
Add support for legacy server npm modules ( #7898 )
...
Notably, this PR fixes `faunadb` which relies on `formidable`.
n.b. `formidable` is an unmaintained legacy npm package that uses practices not compatible with the modern ecosystem.
2019-07-11 13:02:43 -04:00
Luis Fernando Alvarez D
6f9387f6cf
Add declaration files to the contributing guide ( #7885 )
2019-07-10 20:59:53 -04:00
Lukáš Huvar
2450c85e81
exportPathMap
dynamic routes params fix (#7846 )
...
* Fix dynamic page export fixes #7829
* Adding handling of unmatched path
* Remove logs
* Fix newline
* Tests
* Fix promise
* Fix amp tests
* Revert test
* Adjust error document
* Remove old argument
* Simplify export test
* Ensure page !== path for this check
2019-07-10 17:13:44 -04:00
JJ Kasper
41cb3b3bc0
Stop PageConfig plugin from running on non-pages ( #7884 )
...
* Add test for PageConfig
* Make sure PageConfig plugin is only run for pages
2019-07-10 15:27:11 -04:00
JJ Kasper
268ac93685
Fix placeholder values being added when exporting from serverless ( #7883 )
...
* Add testing serverless in dynamic routes suite
* Fix placeholder dynamic values being added
when exporting from serverless
2019-07-10 15:23:28 -04:00
Joe Haddad
193d049d62
Test for <Document> fragment styles
( #7875 )
2019-07-10 11:46:20 -04:00
Tim Neutkens
8122d82130
Handle empty directory ( #7876 )
...
* Add test for empty directory
* Fix test re-runs
* Handle empty `pages/` directory
2019-07-10 11:45:53 -04:00
Joe Haddad
70b8bed4ad
Add a dev2 command
2019-07-10 10:45:38 -04:00
JJ Kasper
bf7af1d16b
Add default values for runtime config ( #7847 )
...
* Add default values for runtime config
* Add test to ensure default values are set
for runtime config
* Only add runtimeConfig if it's not empty
* Only add runtimeConfig if it's not empty
* Simplify default value adding
* Reduce bundle size
* remove comment changes
* Fix typos
* Add test for runtimeConfig in __NEXT_DATA__
2019-07-10 10:43:04 -04:00
Tim Reynolds
c28f467488
Remove with-styled-components Auto Prerendering warning ( #7871 )
2019-07-10 14:35:50 +02:00
Luis Fernando Alvarez D
8c5209efab
Update typescript examples ( #7867 )
...
* Updated with-jest-typescript
* Updated the mobx-state-tree-typescript example
* Removed the sitemap with typescript example
* Updated the with css typings example
2019-07-10 12:51:21 +02:00
Joe Haddad
24fa6b352f
Title may be omitted ( #7865 )
...
Fixes https://github.com/zeit/next.js/issues/7854
2019-07-10 01:53:20 -04:00
Joe Haddad
e5fa2beac1
v9.0.1-canary.1
2019-07-10 01:39:48 -04:00
Joe Haddad
b430a4919e
Allow React.Fragment for Document styles ( #7863 )
...
* Allow React.Fragment for Document styles
Fixes https://github.com/zeit/next.js/issues/7784
Closes https://github.com/zeit/next.js/pull/7860
* Fix types
* Remove `Without`
2019-07-10 01:39:07 -04:00
Joe Haddad
437140a048
Add UrlObject to router methods ( #7859 )
2019-07-10 00:10:44 -04:00
Barry
1d8fa3a943
fix terminal links (cmd-click) on VSCode ( #7849 )
2019-07-09 19:34:20 -05:00
JJ Kasper
66a03bf1ff
Add test for trailing slash on API route ( #7851 )
2019-07-09 16:34:12 -04:00
Aziz Khambati
bd7a85e26f
Upgrade Doc: Note to remove @types/next ( #7830 )
...
* [doc] Add Uninstall @types/next in Upgrading Doc
* Apply suggestions from code review
Co-Authored-By: Tim Neutkens <tim@timneutkens.nl>
* Update UPGRADING.md
* Update UPGRADING.md
2019-07-09 13:37:30 -04:00
Junyoung Choi
9c8d34d551
Upgrade next.js version in custom-typescript-server example ( #7772 )
...
* Upgrade next.js version of custom-typescript-server example
* Update examples/custom-server-typescript/package.json
Co-Authored-By: Resi Respati <resir014@gmail.com>
* Format package.json
2019-07-09 13:24:14 -04:00