rsnext/packages/next/next-server/lib
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
..
router Update method for attaching GS(S)P identifier to page (#10859) 2020-03-05 23:15:10 -05:00
amp-context.ts Move next-server back into next package (#8613) 2019-09-04 10:00:54 -04:00
amp.ts Move next-server back into next package (#8613) 2019-09-04 10:00:54 -04:00
constants.ts Update url prop handling for pages with new data methods (#10653) 2020-02-26 13:26:55 -05:00
document-context.ts Remove _document context (#9068) 2019-10-14 12:45:56 -04:00
dynamic.tsx Move next-server back into next package (#8613) 2019-09-04 10:00:54 -04:00
head-manager-context.ts Move next-server back into next package (#8613) 2019-09-04 10:00:54 -04:00
head.tsx Just a small typo I think, right? (#11344) 2020-03-25 13:26:53 +01:00
loadable-context.ts Remove ts-ignore where possible (#10541) 2020-02-17 16:16:19 -05:00
loadable.d.ts Improve linting rules to catch more errors (#9374) 2019-11-10 19:24:53 -08:00
loadable.js Improve linting rules to catch more errors (#9374) 2019-11-10 19:24:53 -08:00
mitt.ts Improve linting rules to catch more errors (#9374) 2019-11-10 19:24:53 -08:00
request-context.ts Move next-server back into next package (#8613) 2019-09-04 10:00:54 -04:00
router-context.ts Move next-server back into next package (#8613) 2019-09-04 10:00:54 -04:00
runtime-config.ts Move next-server back into next package (#8613) 2019-09-04 10:00:54 -04:00
side-effect.tsx Move next-server back into next package (#8613) 2019-09-04 10:00:54 -04:00
utils.ts Add initial support for new env handling (#10525) 2020-03-26 13:32:41 +01:00