Commit graph

5385 commits

Author SHA1 Message Date
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
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
JJ Kasper
b4fca31d3b
Update handling for ENOENT from GSSP methods (#11302)
* Update handling for ENOENT from GSSP methods

* Add route to routes-manifest test
2020-03-24 09:33:39 +01:00
Yosuke Furukawa
aadb31fa5b
Add custom amp optimizer and skip validation mode (#10705)
* Add custom amp optimizer and skip validation mode

* fix: type

* fix worker lint errors
2020-03-24 09:31:04 +01:00
Luis Alvarez D
1690a756e2
Update GIP docs (#11303)
* Updated docs

* bump

Co-authored-by: JJ Kasper <jj@jjsweb.site>
Co-authored-by: Joe Haddad <joe.haddad@zeit.co>
2020-03-23 18:02:41 -05:00
Joe Haddad
130733129d
v9.3.2-canary.3 2020-03-23 18:46:48 -04:00
Joe Haddad
f19dcf9b6e
Add Numeric Separator Support for TypeScript (#11308)
* Add Numeric Separator Support for TypeScript

* Check for number in render
2020-03-23 17:41:35 -05:00
Tim Neutkens
541cd01b22
Add test for single alias (#11296) 2020-03-23 12:30:42 -04:00
Joe Haddad
c68de947a4
v9.3.2-canary.2 2020-03-23 11:20:28 -04:00
Tim Neutkens
7fce52b905
Add support for paths in tsconfig.json and jsconfig.json (#11293)
* Add support for tsconfig/json `paths` option

* Add tests for paths in tsconfig.json

* Don't apply aliases when paths is empty

* Clean up unused methods and link to TypeScript license

* Add tests for jsconfig

* Put feature under an experimental flag

* Enable to see if tests pass

* Update types

* Add feature under an experimental flag
2020-03-23 10:45:51 -04:00
Dulmandakh
d3fb262958
remove mkdirp, bump fs-extra to 9.0.0 (#11251)
* bump mkdirp to 1.0.3, which support promise

* fix mkdirp in spr-cache.ts

* bump fs-extra to 9.0.0

* remove mkdirp
2020-03-21 17:02:05 +01:00
Greg Rickaby
cadc950e2d
docs(example): Load basic-css example on codesandbox (#11227)
* Load basic-css example on codesandbox

* Moved link

Co-authored-by: Luis Alvarez <luis@zeit.co>
Co-authored-by: Shu Uesugi <shu@chibicode.com>
2020-03-20 15:39:36 -05:00
julianbenegas
f1944cad88
With Firebase Client-Side example (#11053)
* initialized example

* Import from "firebase/app"

to get only needed firebase modules

* credentials as env variables
Also, initialize app in a separate file. Much cleaner.

* Update examples/with-firebase-client-side/package.json

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

* fixed environment variables and added .env.example

* added dotenv

* Updated readme

* Renamed example in the readme

* Renamed example files

* Updated title

Co-authored-by: Luis Alvarez D. <luis@zeit.co>
2020-03-20 15:38:28 -05:00
Martín Granados García
8724b3cd2f
Updated Api Routes Middleware example to use getServerSideProps (#11128) 2020-03-20 12:47:37 -05:00
Tim Neutkens
f25f9b8753 v9.3.2-canary.1 2020-03-20 13:07:04 +01:00
Tim Neutkens
b9320a8f70
Update wording of new data fetching methods recommendation (#11221) 2020-03-20 12:57:17 +01:00
Avi Aryan
920bf76579
Fix with-firebase-cloud-messaging example setup code (#10686) 2020-03-20 10:15:45 +01:00
Timon Borter
c25447ccbb
update mocha example with yml configuration. (#11214) 2020-03-20 10:13:57 +01:00
JJ Kasper
c14d983d54
Ensure hybrid AMP works correctly with SSG (#11205)
* Ensure hybrid AMP works correctly with SSG

* Strip AMP from query when not needed
2020-03-20 09:46:52 +01:00