rsnext/packages/next-server/server
Joe Haddad a372edae48 Default target in loadConfig instead of next build (#7521)
* Default `target` in `loadConfig` instead of `next build`
We should set the target from the environment variable during `loadConfig` instead of in `next build`. This ensures all other locations in Next.js that rely on `config` can read the correct value to toggle behaviors.

* Use object destructuring

* Add tests for builder target

* Run start with serverless
2019-06-06 15:57:42 +02:00
..
lib Move syntax formatting to prettier (#7454) 2019-05-29 13:57:26 +02:00
api-utils.ts API interface extensions (#7363) 2019-06-05 13:22:09 +02:00
config.ts Default target in loadConfig instead of next build (#7521) 2019-06-06 15:57:42 +02:00
get-dynamic-import-bundles.ts Move syntax formatting to prettier (#7454) 2019-05-29 13:57:26 +02:00
get-page-files.ts Move syntax formatting to prettier (#7454) 2019-05-29 13:57:26 +02:00
load-components.ts Move syntax formatting to prettier (#7454) 2019-05-29 13:57:26 +02:00
next-server.ts API interface extensions (#7363) 2019-06-05 13:22:09 +02:00
normalize-page-path.ts Implement tslint for core files (#5952) 2018-12-31 14:44:27 +01:00
optimize-amp.ts Render valid optimized AMP by default (#7465) 2019-05-29 19:53:41 -07:00
render.tsx Add identifier for Next.js AMP pages (#7485) 2019-06-02 02:38:47 -07:00
require.ts Move syntax formatting to prettier (#7454) 2019-05-29 13:57:26 +02:00
router.ts Move syntax formatting to prettier (#7454) 2019-05-29 13:57:26 +02:00
send-html.ts Move syntax formatting to prettier (#7454) 2019-05-29 13:57:26 +02:00
serve-static.ts Move syntax formatting to prettier (#7454) 2019-05-29 13:57:26 +02:00
utils.ts Move syntax formatting to prettier (#7454) 2019-05-29 13:57:26 +02:00