1
0
mirror of synced 2025-12-19 18:10:59 -05:00
Commit Graph

23 Commits

Author SHA1 Message Date
Kevin Heis
2182ff28f3 Next12 now supports ESM (#29295)
* Next12 now supports ESM

* No more michael jackson script extensions

* Fix test running

* Update jest-puppeteer.config.cjs

* Update package.json
2022-07-26 17:53:23 +00:00
Kevin Heis
42e785b0a8 Migrate CommonJS to ESM (#20301)
* First run of script

* Get the app running --- ish

* Get NextJS working

* Remove `node:`

* Get more tests passing in unit directory

* Update FailBot test to use nock

* Update test.yml

* Update Dockerfile

* tests/content fixes

* Update page.js

* Update build-changelog.js

* updating tests/routing

* Update orphan-tests.js

* updating tests/rendering

* Update .eslintrc.js

* Update .eslintrc.js

* Install jest/globals

* "linting" tests

* staging update to server.mjs

* Change '.github/allowed-actions.js' to a ESM export

* Lint

* Fixes for the main package.json

* Move Jest to be last in the npm test command so we can pass args

* Just use 'npm run lint' in the npm test command

* update algolia label script

* update openapi script

* update require on openapi

* Update enterprise-algolia-label.js

* forgot JSON.parse

* Update lunr-search-index.js

* Always explicitly include process.cwd() for JSON file reads pathed from project root

* update graphql/update-files.js script

* Update other npm scripts using jest to pass ESM NODE_OPTIONS

* Update check-for-enterprise-issues-by-label.js for ESM

* Update create-enterprise-issue.js for ESM

* Import jest global for browser tests

* Convert 'script/deploy' to ESM

Co-authored-by: Grace Park <gracepark@github.com>
Co-authored-by: James M. Greene <jamesmgreene@github.com>
2021-07-14 13:49:18 -07:00
Grace Park
bf3bc2804a adding the rest of the 2 requires 2021-06-23 14:08:00 -07:00
Mike Surowiec
5af742b722 fix: load feature flags sooner 2021-06-23 13:41:56 -07:00
Grace Park
9956bf1250 Update server.js
Co-authored-by: James M. Greene <JamesMGreene@github.com>
2021-06-23 10:47:27 -07:00
Grace Park
6db9920658 Update server.js
Co-authored-by: James M. Greene <JamesMGreene@github.com>
2021-06-23 10:44:59 -07:00
Kevin Heis
6872ca29bb Update server.js 2021-06-23 10:01:41 -07:00
Grace Park
9d89d42a23 updating createApp 2021-06-21 12:00:06 -07:00
Grace Park
67b32946d0 exporting createApp function in app.js 2021-06-18 14:15:47 -07:00
Grace Park
0762734b43 fixed easy global requires 2021-06-17 18:39:38 -07:00
James M. Greene
3899af0d0d Do not use clustering in non-production environments (#18438) 2021-03-26 14:10:50 -05:00
James M. Greene
94362e618e Adjust worker count calculation to allow local clustering with WEB_CONCURRENCY (#18366)
* Adjust worker count calculation to allow local clustering with WEB_CONCURRENCY
* Only honor WEB_CONCURRENCY if it parses to a number > 0
2021-03-23 21:36:24 +00:00
James M. Greene
6e20ed7927 Implement app clustering (#17752)
* Install throng for easy cluster management
* Extract the Express app construction into its own file
* Switch server.js to use app clustering for deployed environments
* Worker count is based on the lesser of process.env.WEB_CONCURRENCY and the count of CPUs
* Reading clustered output is difficult, let's prefix the std{out,err} streams

Co-authored-by: Jason Etcovitch <jasonetco@github.com>
2021-03-19 20:07:46 +00:00
James M. Greene
3e2770f289 Add dotenv config to server.js (#18227)
Co-authored-by: Jason Etcovitch <jasonetco@github.com>
2021-03-11 15:26:40 -05:00
Kevin Heis
a66fc72944 Skip warm server when starting staging (#16978) 2020-12-15 19:22:06 +00:00
Jason Etcovitch
1e7af2a0bb Add a check for GITHUB_ACTIONS (#16912) 2020-12-11 20:15:13 +00:00
Kevin Heis
28de276a17 Revert #574957397927895797584397843959398 (#16905)
Co-authored-by: Chiedo John <2156688+chiedo@users.noreply.github.com>
2020-12-11 19:53:55 +00:00
Jason Etcovitch
64d38468c6 Add await to warmServer in all environments (#16841) 2020-12-09 13:06:32 -05:00
James M. Greene
f312814219 Put the 'await' back with 'warmServer' for true production startup (#16765) 2020-12-07 15:16:08 -06:00
Hollow Man
5246cfbda9 Fix typo
durings -> during
2020-11-21 00:43:27 +08:00
Chiedo John
8a26395e79 Prevent warmserver from blocking the port from being attached (#16150)
Co-authored-by: Chiedo <chiedo@users.noreply.github.com>
2020-10-21 10:26:50 -04:00
Chiedo John
6762f8c1b7 Meet licensing requirements (#15794)
Meet licensing requirements
2020-09-29 08:51:48 -07:00
Vanessa Yuen
3df90fc9b8 Hello git history spelunker!
Are you looking for something? Here is all of the GitHub Docs history in one single commit. Enjoy! 🎉
2020-09-27 14:10:11 +02:00