Commit graph

5402 commits

Author SHA1 Message Date
Guy Bedford
b215348cdb remove unused babel types 2020-03-30 16:26:25 -04:00
Guy Bedford
5619f990cf refactor ncc optimization, babel optimization 2020-03-30 16:26:25 -04:00
Joe Haddad
7038d275d0
v9.3.4-canary.0 2020-03-30 13:04:48 -04:00
shYkiSto
2db9563f13
fix(performance-relayer): properly clean up event listeners (#11410)
Co-authored-by: siarhei.fedarovich <siarhei.fedarovich@ticketmaster.com>
Co-authored-by: Joe Haddad <joe.haddad@zeit.co>
2020-03-30 13:04:27 -04:00
Joe Haddad
c2c4241860
Use Lax Cookie for Preview Mode (#11495)
* Use Lax Cookie for Preview Mode

* Fix tests
2020-03-30 12:47:26 -04:00
JJ Kasper
2713369e40
Update to not add path segments to redirect query automatically (#11497)
* Update to not add path segments to redirect query automatically

* Move check up
2020-03-30 18:43:24 +02:00
Joe Haddad
b5d8660ef3
v9.3.3 2020-03-30 10:00:26 -04:00
Tim Neutkens
ac223e2761 v9.3.3-canary.0 2020-03-30 14:21:05 +02:00
Tim Neutkens
dd098ca5f6 Merge branch 'canary' of github.com:zeit/next.js into canary 2020-03-30 14:20:31 +02:00
Josh Pullen
e4bf0d4c90
Fix small punctuation issue (#11439) 2020-03-30 11:45:11 +02:00
chislee0708
a553768514
Typos fixed: overriden --> overridden and innaccurate -->inacc… (#11454) 2020-03-30 10:54:06 +02:00
Tim Neutkens
d3d0b936a4
Fix type ignore (#11479) 2020-03-30 10:02:36 +02:00
David D
6f27e21f8a
Fix #11396 (#11397)
Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
2020-03-30 09:53:09 +02:00
Mateusz Burzyński
fc946053fd
Update emotion dependencies in with-emotion-11 (#11414) 2020-03-28 14:41:31 -05:00
Ren Adachi
41764b28dc
Update .gitignore (#11421)
add node_modules/
2020-03-28 14:35:20 -05:00
Eugene Dzhumak
8d63330c15
Change mdx options description (#11409)
* Change mdx options description

https://mdxjs.com/advanced/plugins#using-remark-and-rehype-plugins

* Change descriptions of next-mdx
2020-03-28 14:20:48 -05:00
Jazib Jafri
9e2ae69973
Update api-rest-example to SSG (#11362)
* Update api-rest-example to SSG

* Use SWR for data fetching

* Updated pages

Co-authored-by: Luis Alvarez <luis@zeit.co>
2020-03-28 13:27:17 -05:00
sdhani
48650a7d5d
Fix with-aphrodite readme typo (#11436) 2020-03-28 13:02:12 -05:00
liulanz
39a70d8eb1
Minor change in README.md (#11434)
* changed link for JOIN THE COMMUNITY

* Update packages/next/README.md

Co-Authored-By: Luis Alvarez D. <luis@zeit.co>

Co-authored-by: Luis Alvarez D. <luis@zeit.co>
2020-03-28 12:58:42 -05:00
MichelleLucero
2b818a1e8b
fixed typo: libraray -> library (#11435)
Co-authored-by: Michelle Lucero <31500626+mlucero4607@users.noreply.github.com>
2020-03-28 12:57:19 -05:00
Tim Neutkens
8fdc13afa4
Add support for comments in tsconfig.json (#11392)
Fixes #11390
2020-03-27 14:23:36 +01:00
Jeremy Stucki
a81d7620a4
docs: Replace micro-cors with cors middleware (#11395) 2020-03-27 13:23:53 +01:00
Tim Neutkens
e7ea27645d Add support for comments in tsconfig.json
Fixes #11390
2020-03-27 11:20:13 +01:00
Ben Goerdt
44b4070fe3
Revert "Fix assignment of props in WithApollo.getInitialProps (#11236)" (#11384)
This reverts commit db57ad3b30.
2020-03-26 18:21:38 -05:00
Tim Neutkens
ee0081356d v9.3.2 2020-03-26 20:11:41 +01:00
Joe Haddad
dd4cee7245
v9.3.2-canary.9 2020-03-26 15:00:03 -04:00
Jazib Jafri
e02b66a52c
Add with-redux-toolkit example (#11358) 2020-03-26 13:15:40 -05:00
Luis Alvarez D
044ddf4421
[Example] Use .jpg for images in blog-starter (#11176)
* Use .jpg for images

* Updated links
2020-03-26 12:45:17 -05:00
Joe Haddad
ee249ee6cd
v9.3.2-canary.8 2020-03-26 13:18:16 -04:00
Joe Haddad
1d6ffc39f7
Fix static/ file name encoding (#11373)
* Test `static/` file name encoding

* Fix `static/` file name encoding
2020-03-26 12:58:15 -04:00
Tim Neutkens
e83cd4aa96 v9.3.2-canary.7 2020-03-26 14:13:54 +01:00
JJ Kasper
d8155b22ff
Add initial support for new env handling (#10525)
* Add initial support for new env config file

* Fix serverless processEnv call when no env is provided

* Add missing await for test method

* Update env config to .env.json and add dotenv loading

* ncc dotenv package

* Update type

* Update with new discussed behavior removing .env.json

* Update hot-reloader createEntrypoints

* Make sure .env is loaded before next.config.js

* Add tests for all separate .env files

* Remove comments

* Add override tests

* Add test for overriding env vars based on local environment

* Add support for .env.test

* Apply suggestions from code review

Co-Authored-By: Joe Haddad <joe.haddad@zeit.co>

* Use chalk for env loaded message

* Remove constant as it’s not needed

* Update test

* Update errsh, taskr, and CNA template ignores

* Make sure to only consider undefined missing

* Remove old .env ignore

* Update to not populate process.env with loaded env

* Add experimental flag and add loading of global env values

Co-authored-by: Tim Neutkens <timneutkens@me.com>
Co-authored-by: Joe Haddad <joe.haddad@zeit.co>
2020-03-26 13:32:41 +01:00
Luis Alvarez D
a391d328ae
Add docs for multi zones (#11348)
* Updated example

* Added single now.json

* Added Multi Zones docs

* Fix titles

* Added back the deploy button
2020-03-26 10:44:00 +01:00
Luis Alvarez D
4801dcdd15
Update AMP docs (#11353)
* Add caveat about css support for amp

* Update docs/advanced-features/amp-support/introduction.md

* Update introduction.md

Co-authored-by: Shu Uesugi <shu@chibicode.com>
Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
2020-03-26 10:32:36 +01:00
Joe Haddad
aac2e3e2db
v9.3.2-canary.6 2020-03-25 15:02:15 -04:00
JJ Kasper
2ba6db65e2
Update to prevent re-using workers for getStaticPaths in dev mode (#11347) 2020-03-25 14:57:14 -04:00
Yuji Matsumoto
67fd72b764
Fix preview-mode docs/examples typo (#11345)
be know => be known
2020-03-25 18:13:33 +01:00
Tim Neutkens
074c60e0ec
Update data-fetching.md 2020-03-25 18:08:15 +01:00
Rishabh Saxena
b46abed61b
use records to init store (#11343) 2020-03-25 12:03:52 -05:00
Luis Alvarez D
523680c213
[docs] Mention our channels (#11336)
* Mention our communication channels

* Apply suggestions from Shu

Co-Authored-By: Shu Uesugi <shu@chibicode.com>

* Update getting-started.md

Co-authored-by: Shu Uesugi <shu@chibicode.com>
Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
2020-03-25 10:06:58 -05:00
Filipe Medeiros
a6ac0a5057
Just a small typo I think, right? (#11344) 2020-03-25 13:26:53 +01:00
JJ Kasper
77380507d8
Make sure to copy AMP SSG files during export (#11331)
* Make sure to copy AMP SSG files during export

* bump

* bump
2020-03-25 09:22:34 +01:00
Joe Haddad
e7842aff23
v9.3.2-canary.5 2020-03-24 22:19:47 -04:00
JJ Kasper
eeea53c04b
Fix warning for API routes with next export (#11330)
* Fix warning for API routes with next export

* Update warning copy
2020-03-24 13:38:22 -04:00
Tim Neutkens
876ae3fc87
Upgrade loader-utils (#11324) 2020-03-24 09:57:23 -04:00
Tim Neutkens
55186cabd6 v9.3.2-canary.4 2020-03-24 12:40:29 +01:00
Tim Neutkens
7774101ad1
Skip paths that are routed to a .d.ts file (#11322) 2020-03-24 12:25:58 +01:00
Nicolas Rouanne
ed0643486a
fix: typo in isStaging in with-env example (#11305)
* fix: typo in `isStaging` in `with-env` example

- add missing `phase ===` statement when checking for _staging_ env in `isStaging`

* Update examples/with-env-from-next-config-js/next.config.js

* style: fix prettier issue in example `with-env-from-next-config-js`

Co-authored-by: Luis Alvarez D <luis@zeit.co>
2020-03-24 10:16:47 +01:00
Ben Goerdt
db57ad3b30
Fix assignment of props in WithApollo.getInitialProps (#11236)
The props are being assigned incorrectly based on the `inAppContext`, they should be wrapped in `pageProps` when `inAppContext` is true, not the other way around. This will cause a new apollo client to be created during `getDataFromTree` instead of using the one that has already been created on the server.
2020-03-24 10:11:24 +01:00
Mihira Jayasekera
16a97c87e7
docs: clarify how to customize next/babel presets (#11316)
* docs: clarify how to customize next/babel presets

The current language confused me, because it says the presets/plugins should not be added to .babelrc, but then they are "added" (in a sense) to .babelrc in the subsequent example. Clarify that they shouldn't be added _as their own presets/plugins_.

* docs: further clarify custom next/babel config

Even more explicit.
2020-03-24 10:00:41 +01:00