Commit graph

5669 commits

Author SHA1 Message Date
Shania
c601c9413d
Added a link to the next.config.js docs for the with-env-next-… (#12153) 2020-04-24 11:20:13 +02:00
Allen Hai
0c6ee2c760
Add userbase example (#12150)
* add userbase example

* update readme and add now.json with build.env

* update deploy button import path for testing

* update readme

* update readme with canary tree path for deploy button

* remove prepopulated test username + password

* Apply lint-fix

* add deployed demo link

* remove merge conflict arrows

* fix lint errors

* run yarn lint-fix

* add .env.example and update readme with config steps

* add dotenv and update next.config.js

Co-authored-by: Matthew Sweeney <mail@msweeneydev.com>
Co-authored-by: JJ Kasper <jj@jjsweb.site>
2020-04-23 19:56:42 -05:00
JJ Kasper
2ad351511e
Update to match log style for new env loading (#12137) 2020-04-23 21:17:05 +02:00
JJ Kasper
5d13e55a4a
Ensure modern AMP client page bundles are removed (#12138) 2020-04-23 21:16:35 +02:00
JJ Kasper
0a3b64d274
Add tests for dotenv-expand behavior (#12140) 2020-04-23 21:15:36 +02:00
matamatanot
29f86d9076
Remove @types/find-up (#12120) 2020-04-23 09:39:31 +02:00
Kiarash Zarinmehr
eef8f1f39d
Improve Server Lib Utilities (#12119) 2020-04-23 09:38:57 +02:00
Sean Li
91adb8661d
Add example with Magic authentication (#11810)
* Add example with Magic and Passport.js

* Tweaked wording on README

* Fixed lint error

* Fixed prettier error

* Update examples/magic/README.md

Removed Download manually section from README

Co-Authored-By: Joe Haddad <timer150@gmail.com>

* Removed dependency on passport and express + cleanup

* Changed ZEIT brand to Vercel

* Updated readme instructions and secrets

* Renamed example

* Changed db comment

Co-authored-by: Joe Haddad <timer150@gmail.com>
Co-authored-by: Luis Alvarez <luis@zeit.co>
2020-04-22 18:15:12 -05:00
Oxicode
7d2ff81207
fix variable (#12114) 2020-04-22 20:32:41 +02:00
JJ Kasper
2b9425c2fc
Update TypeScript API routes tests (#12112) 2020-04-22 11:47:32 -05:00
JJ Kasper
eb367db9d1
Make sure to handle // during hydration (#11788)
* Make sure to handle // during hydration

* Add test for navigating from // URL
2020-04-22 10:56:49 -05:00
Steven
ec26b1bba3
Update Code of Conduct email address (#12108) 2020-04-22 16:27:24 +02:00
Vania Kucher
39d9476992
Avoid bugs with native Date class (#12098) 2020-04-22 11:43:07 +02:00
Thomas Heyenbrock
47d7eddd0d
fix(dev-server): render 404 when dynamic ssg path doesn't exist (#12085)
Co-authored-by: JJ Kasper <jj@jjsweb.site>
Co-authored-by: Joe Haddad <joe.haddad@zeit.co>
2020-04-22 01:36:49 -04:00
Joe Haddad
5d8709946a
[internal] Dedupe monorepo deps (#12093)
* Dedupe webpack

* Dedupe deps

* Update compiled deps
2020-04-22 01:25:43 -04:00
dzigg
06f379ffad
Fix typo in example (#12094)
Line 4: "...special configuration file `next.js.config` and..."
Is it meant to be `next.config.js`?
2020-04-22 01:19:53 -04:00
matamatanot
4f96648569
Update engines in package.json (#12022) 2020-04-22 00:38:50 -04:00
Joe Haddad
ad16b8c823
v9.3.6-canary.9 2020-04-22 00:11:37 -04:00
Scott Parker
906da4c9ec
Add Additional Test Case for CSS Order in Dev (#12007)
* Failing test to demonstrate issue #12004

* Separate position for global vs client scripts. Fixes #12004

* Revert client.ts

* Revert global.ts

Co-authored-by: Joe Haddad <timer150@gmail.com>
Co-authored-by: Joe Haddad <joe.haddad@zeit.co>
2020-04-22 00:10:30 -04:00
Joe Haddad
d8c71b1537
Evaluate App before Page in Dev for CSS Ordering (#12090) 2020-04-21 23:55:02 -04:00
Fonger
fc830b25de
Upgrade ora to 4.0.4 to prevent undefined progress on CI build (#12088) 2020-04-21 22:52:07 -04:00
Brandon Duffany
548a01754d
Fix type on NextApiHandler (#11988)
* Fix type on NextApiHandler

The example [here](https://nextjs.org/docs/api-routes/api-middlewares) shows that `NextApiHandler` can be async, so the return type should be `void | Promise<void>`.

* Add TS integration tests for API
2020-04-21 19:14:24 -05:00
Joe Haddad
c14ec9cf51
v9.3.6-canary.8 2020-04-21 17:37:03 -04:00
JJ Kasper
d00180bba8
Update to track test timings separate for Azure and Actions (#12083)
* Update to track test timings separate for Azure and Actions

* Add azure test flag
2020-04-21 16:11:04 -04:00
Joe Haddad
07b24e6fa1
Upgrade webpack (#12082)
* Upgrade webpack

* rebundle
2020-04-21 16:05:29 -04:00
Joe Haddad
c08646a11a
[Fast Refresh] propagates a module that stops accepting in nex… (#12062)
* [Fast Refresh] propagates a module that stops accepting in next version

* Verify self accept first

* Update test for webpack behavior

* Fix test on Node 10
2020-04-21 13:59:12 -04:00
Dustin Deus
d28ad8805a
Rosetta i18n example (#11841)
* add rosetta example

* add comment

* add example for ssr

* add debug example, rerender when i18n keys are added

* output active locale, fix interpolation, fix cases for SSR and CSR

* add useful comments

* address pr issues

* update name in readme

* improve wording

* rename folder

* fix prop typo, add redirects

* load specific i18n json file in getStatisProps
Dashboard dont use any ssr technique

* use ext

* improve example

* Updated example

Co-authored-by: Luis Alvarez <luis@zeit.co>
2020-04-21 12:49:18 -05:00
Joe Haddad
3fe4cbc677
Add Experimental React Refresh Example (#12081)
* Add Experimental React Refresh Example

* add basic readme
2020-04-21 12:28:09 -04:00
David Pike
600b78c098
fix postcss.config.js warnings (#12070)
* update postcss.config.js to fix warnings

Return empty array if the condition is not met to avoid a null/undefined PostCSS plugin.

Related PR: https://github.com/zeit/next.js/pull/11366

* style: correct linting error
2020-04-21 14:51:16 +02:00
JJ Kasper
918cf38d82
Make sure to not show _error without 404 warning in some cases (#12061) 2020-04-21 14:22:39 +02:00
JJ Kasper
b73b2ef8be
Add additional check for segments in destination but not source (#12067)
* Add initial test for invalid segments usage

* Add additional check for segments in destination but not source

* bump
2020-04-21 14:21:41 +02:00
Tim Neutkens
9f1e7132f4 Update year on license files 2020-04-21 12:24:08 +02:00
Tim Neutkens
c60511c76d v9.3.6-canary.7 2020-04-21 11:47:45 +02:00
Tim Neutkens
483bd3ddda
Rename ZEIT to Vercel (#12075)
* Find/replace

* Update more URLs

* More rename

* Fix remaining examples

* More updates

* Update create-next-app

* Update remaining text

* Update

Co-authored-by: Shu Uesugi <shu@chibicode.com>
2020-04-21 11:47:12 +02:00
JJ Kasper
16e7871066
v9.3.6-canary.6 2020-04-20 20:02:00 -05:00
Joe Haddad
79071b94ed
[Fast Refresh] Module re-execution tests from Metro (#12059)
* re-runs accepted modules

* propagates a hot update to closest accepted module

* propagates hot update to all inverse dependencies

* Add missing TODOs

* Separate Module Tests
2020-04-20 15:48:01 -04:00
James Mosier
dc4e5695aa
(examples) Fix link in with-passport example README (#12056)
* Fix incorrect link in with-passport example

Closes #11961

* hardcode link for with-passport README

* fix link

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

Co-authored-by: Luis Alvarez D. <luis@zeit.co>
2020-04-20 20:28:12 +02:00
JJ Kasper
4d193ea33b
Update to only apply experimental process.env stub in developm… (#12055) 2020-04-20 20:25:36 +02:00
退之
5592e64c36
Fix with mobx (#11907)
* fix: with-mobx

* refactor: up link

* refactor: npm run prettier-fix

* refactor: server side render

* Updated store implementation and pages

* Updated readme

Co-authored-by: wangcheng <wangcheng@deepblueai.com>
Co-authored-by: Luis Alvarez <luis@zeit.co>
2020-04-20 13:05:10 -05:00
Tim Neutkens
6188c79b22 Fix linting 2020-04-20 12:44:52 +02:00
Yangshun Tay
099471eaec
Fix typo in next/amp docs (#12040) 2020-04-20 11:18:38 +02:00
Lee Robinson
16ee0fe2dc
Add note about polyfilling CSS Grid for IE11. (#12035) 2020-04-20 11:17:45 +02:00
Lee Robinson
b52d7ff323
Add documentation on next build output. (#12034) 2020-04-20 11:17:12 +02:00
Lee Robinson
912f746749
Update next/head docs to clarify duplicate tags. (#12033) 2020-04-20 11:15:53 +02:00
coktopus
a6beed01eb
bug: error when using transition property in tailwindcss + emo… (#12027) 2020-04-20 11:12:13 +02:00
Rounak Agarwal
2c0ed5e80c
[Examples] Update draft-js to v0.11.5 and add editorKey prop i… (#12011) 2020-04-20 11:05:09 +02:00
Bhaskar Murthy
b6f44e66f8
Add Heroku to list of cache examples (#12037) 2020-04-20 10:09:38 +02:00
Joe Haddad
544654989f
v9.3.6-canary.5 2020-04-20 01:31:23 -04:00
Joe Haddad
73b859d53e
Add module.hot.invalidate() to webpack HMR (#12038) 2020-04-20 01:26:27 -04:00
Joe Haddad
68c3266a66
Fast Refresh: Test Syntax Error Recovery (#12032) 2020-04-20 00:35:12 -04:00