Граф коммитов

2 Коммитов

Автор SHA1 Сообщение Дата
Stuart Colville f22ddf49b0
Port to nextjs (#482)
* Initial port to next.js

* Re-instate basic test coverage for contrib pages

* Remove unnecessary style

* Update Procfile

* Adopt test directory mirroring to avoid issues with test files in pages

* Try start-nginx-solo

* Attempt to configure next under nginx

* Use custom server

* Properly specify socket file

* Get rid of API_ROOT in favour of env vars

* Add .env defaults file

* Allow .env.example to be committed

* Fix bug with not redefining API urls based on new params on client-side

* Run prettier

* Update next and fix tests

* Surface API errors on server

* Fix bug caused by Next.js incorrectly handling period delimted placeholders

* Update dashboards adding stockwell and p3 and general clean-ups

* Re-instate redirect http->https

* Restore fragement fetcher script and update to use next/env lib

* Add comment re: hashing for ghapi

* Restore stylelint

* Re-instate contrib css

* Workaround ENOMEM issues running on circle

* Remove unnecessary React imports

* Use bob's jsx-a11y config

* Condense waitFor

* fix eslint config

* Fix lint

* Remove null default

* Add a robots.txt file

* Remove mock clearing as it's automatic

* Update nginx config with includes + caching

* Try caching to /tmp dir on heroku

* Fix missing React import

* Enable nginx caching for public/static files served under /static

* Fix nginx config

* Use JSON.stringify

* Use eslint-plugin-amo and fix lint

* Remove lint options that no longer conflict with prettier

* toBe -> toEqual

* Better descriptions for redirect tests

* Stockwell -> STW

* Add NEXT_TELEMETRY_DISABLED=1 to .env

* Remove commented console statement

* Run prettier

* Move test directories

* Dashboard counts for AMO should be 1 or higher

* Don't override constribution assignment

* Consolidate assignment

* Add space after 'Updated'

* Add nprogress

* Re-instate inline styles in CSP

* Fix links on homepage
2021-02-11 11:33:41 +00:00
Stuart Colville 6e0fc5f0f6 Setup prettier 2018-11-22 19:26:21 +00:00