-
-
Notifications
You must be signed in to change notification settings - Fork 108
New preset with hybrid SSG/SSR (replaces SSR-only with hybrid rendering modes support) #42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Vadorequest
wants to merge
203
commits into
v1-ssr-mst-aptd-gcms-lcz-sty
from
v1-hyb-mst-aptd-gcms-lcz-sty
Closed
Changes from 137 commits
Commits
Show all changes
203 commits
Select commit
Hold shift + click to select a range
cee3e6e
Display APP_VERSION and APP_VERSION_RELEASE in /api/status
Vadorequest 58bca45
Rename preset used in this branch from "v1-ssr-mst-aptd-gcms-lcz-sty"…
Vadorequest 84569a5
Add missing Next.js TS types
Vadorequest f747475
POC - Implement basic getStaticProps for "index" page (use SSG instea…
Vadorequest abefe61
Add try/catch block to avoid crash on cookie read (SSG failure at bui…
Vadorequest f309835
Random attempt trying to fix zeit aliasing
Vadorequest 891a590
Revert - Random attempt trying to fix zeit aliasing
Vadorequest f9259c2
Add fix for FB as browser
Vadorequest 0c88c2c
Disable outdated-browser-rework - See https://github.com/mikemaccana/…
Vadorequest 4b8900f
Disable SSR entirely (_app) and use SSG with basic i18N + update to n…
Vadorequest 9eacc5f
Remove existing index/terms pages (SSR) and use experimental redirect…
Vadorequest f328c76
Fix CSR when navigating with Link components
Vadorequest 0c786a8
Add HOC template + TODO
Vadorequest d62e4b8
Refactor NextLink with I18nLink (automatically handle localisation part)
Vadorequest 20ad826
Use better TS typings for SSG
Vadorequest 1da06e9
Use unstable_revalidate (disabled)
Vadorequest 87dc4e6
Use better TS typings for SSG
Vadorequest 91e5e3a
Refactor SSG duplicated code + SSG doc
Vadorequest c839d83
Add Layout (wip)
Vadorequest ecbae33
Add getDefaultStaticProps and getDefaultStaticPaths to reduce boilerp…
Vadorequest 1c643db
Chang Layout implementation, use function as children for improved fl…
Vadorequest 79b09bf
Misc refactor
Vadorequest 0cb6a33
Attempt to use API for auto-redirect to localised page, but doesn't w…
Vadorequest 2adf4f2
Initialise i18nextLocize in Layout
Vadorequest 4d78b0e
Re-implement _app.render with ApolloProvider and protect against non-…
Vadorequest f998d41
Handle 404 edge case
Vadorequest 969b997
Implement auto language detection based on https://github.com/zeit/ne…
Vadorequest 6683992
Apply stuff that doesn't change anything locally (maybe it'll work on…
Vadorequest 799c72a
Redirect link with trailing slash to non-trailing slash (any depth), …
Vadorequest 5d78e16
Cleanup dead code
Vadorequest 438cfdc
Add logs for Next.js experimental modules (transparency)
Vadorequest 4492549
Handle locales such as en-US (redirect + static generation)
Vadorequest 08175b2
Attempt to fix Zeit "because it would overwrite input file" - See htt…
Vadorequest 9233e0f
Fix 404 pages served by SSR (temporary fix until code cleanup)
Vadorequest 736fcd3
Rename "lang" to "locale" in query path - inject both "lang" and "loc…
Vadorequest 51eb5d5
Use proper terminology "locale" vs "lang" to avoid confusion + fix li…
Vadorequest 438529e
Add debug logs and doc
Vadorequest d6533c4
Refactor Apollo GraphQL and use it with SSG pages (fetch GraphCMS API…
Vadorequest 17bb489
Implement Layout with Nav/Footer components and apply layout to Terms…
Vadorequest e66841e
Refactor I18nLink and extract reusable code into functions + cleanup …
Vadorequest 7558364
Fix isActive (handles i18n) for nav links + fix nav links (i18n-frien…
Vadorequest 8a471aa
Remove amplitude eventProperties in Nav, probably from a bad copy/pas…
Vadorequest c5a4b99
Misc Nav cleanup
Vadorequest a77a776
Change "change locale" feature implementation, now switches between f…
Vadorequest 0c9387a
Fix false-positive bug due to refactoring (unused file, used for old …
Vadorequest 73550bc
Fixing alias bugs (#43)
Demmonius ff41497
Remove fixed TODO
Vadorequest 11141e9
Fix Cypress E2E tests (i18n, redirect) + update cypress to 4.5.0
Vadorequest 4cd3e63
Create store "cookieContext" + enhance LayoutPageProps + make cookies…
Vadorequest 32d9942
Misc css
Vadorequest b560e21
Implement Amplitude analytics (browser-side only)
Vadorequest 84ac270
Refactor LayoutSSG > PageLayout
Vadorequest cbca158
Mute "Warning: Text content did not match"
Vadorequest d8588b3
Massive refactor of Layout (split in 3 components) + logs cleaning (a…
Vadorequest 5b1a670
Refactor Head component and allow to define HeadProps from pages (SEO…
Vadorequest 998f51e
Clarify max-age for translations
Vadorequest 3cde65a
Track page displayed (Amplitude analytics)
Vadorequest 4a2ff62
Rename DEFAULT_LANG into DEFAULT_LOCALE + handle cases where the loca…
Vadorequest d57001c
Add 404 page (doesn't support i18n)
Vadorequest 33b7f67
Disable getStaticPaths for 404 page (crash whole app)
Vadorequest bbcea7c
Remove @zeit/next-css package, built-in with Next since 9.2 - See htt…
Vadorequest ad20b35
Misc TS type
Vadorequest 7832f1a
Rename LayoutPageProps > PageLayoutProps (consistency) and associated…
Vadorequest 427f936
Refactor CSS global styles into UniversalGlobalStyles (code quality)
Vadorequest e09eeb3
Refactor Nav/Footer using customerContext and i18nContext stores to a…
Vadorequest f169e46
Rename cookieContext to sessionContext
Vadorequest 4d0e7fa
Moved /examples to /[locale]/examples - TODO this page crash with "to…
Vadorequest 87163af
Refactor I18nLink to use i18nContext instead of props
Vadorequest 2a39f8b
Restore HomePage content (from SSR version)
Vadorequest 28c790d
Restore TermsPage content (from SSR version)
Vadorequest 1d150bc
Override getStaticProps in terms/examples pages to fetch page-specifi…
Vadorequest 6ed6a8a
Re-enable "Text content did not match" warning and use "DisplayOnBrow…
Vadorequest 5041e78
Remove TODO, add doc
Vadorequest 34c44cf
Add useHasMounted utility
Vadorequest b1fec35
Add useHasMounted utility
Vadorequest 46cfb95
Avoid wrapping children of DisplayOnBrowserMount in a div (simplifies…
Vadorequest 8201c63
Typo
Vadorequest 38131a2
Refactor i18n (extract types) + Add link alternate for hreflang as Go…
Vadorequest 8c6afde
Refactor withApollo HOC, inspired by https://github.com/zeit/next.js/…
Vadorequest a9451ac
Remove usage of ApolloProvider in _app (avoid disabling auto static o…
Vadorequest 21d773f
Misc add TS types
Vadorequest a11cd17
Rename apolloStaticCache to apolloState (use same name for SSG and SSR)
Vadorequest 410522a
Misc cleanup
Vadorequest 166c719
Add /products page (SSR) + make apollo work nicely for both SSR and SSG
Vadorequest 1513b35
Add link to /products page
Vadorequest eceb3a2
Fix E2E
Vadorequest 0bc9215
Display draft products at /products to allow manual testing from visi…
Vadorequest 5ab8ae1
Cleanup TS types
Vadorequest 75264b3
Massive refactoring of the core (App vs Layout)
Vadorequest b0d08f8
Documentation
Vadorequest 6f2d742
Refactoring Bootstrap
Vadorequest cdb52ec
More TS types
Vadorequest 81f67fd
Rewrite SSR /products page to avoid crashing on CSR, now use getServe…
Vadorequest ea28688
Cleanup types in Layout and add doc + make some TS types more generic
Vadorequest 618b336
Capitalise GetCommonServerSidePropsResults (convention)
Vadorequest b7055a0
Doc
Vadorequest ed5eb51
Rename defaultLocales into i18nTranslations
Vadorequest 331c9d0
Fix infinite loop react rendering during CSR by using a "globalI18nex…
Vadorequest 669e929
Doc regarding proptypes vs typescript types
Vadorequest 482bab0
Add __N_SSP
Vadorequest 1fc3367
Use DDD for /components - See https://css-tricks.com/domain-driven-de…
Vadorequest d69e6e0
Rename hoc folder to hocs
Vadorequest 40d7b8e
Use DDD for /types (TS types) - See https://css-tricks.com/domain-dri…
Vadorequest f1718a8
Use DDD for /utils - See https://css-tricks.com/domain-driven-design-…
Vadorequest a80d3c2
Add info about which i18n plugins are used
Vadorequest 7ac2100
Remove deprecated i18next-node-locize-backend and upgrade i18next-loc…
Vadorequest e06f924
Enable locize saveMissing feature in staging for debug
Vadorequest 4c03a47
Enable i18n debug on !production
Vadorequest 6077bb2
Misc i18n doc
Vadorequest 1b8c684
Fix debug mode
Vadorequest e5d5098
Use locize-lastused instead of locize-node-lastused (now deprecated) …
Vadorequest b16b8ff
Misc TS types i18n
Vadorequest 12fd045
Add faker i18n key for testing on staging
Vadorequest 22bd7be
Revert to only save missing in development env ("saveMissing" issue w…
Vadorequest dfa062e
Misc doc
Vadorequest 99566f7
Revert "faker" test
Vadorequest 8f69e2e
Rename nrn-locize-api-key to nrn-locize-api-key-staging and remove it…
Vadorequest 5005da8
Rename sessionContext to userSessionContext and remove cookiesManager…
Vadorequest a7307e0
Attempt to fix https://github.com/locize/locize-lastused/issues/4 (ES…
Vadorequest ebecf50
Refactor use of userSessionContext and use useUserSession hook instead
Vadorequest 7717d8d
Refactor MultiversalAppBootstrap, handles browser/server different re…
Vadorequest 3b4a583
Improve DisplayOnBrowserMount by allowing universal code to behave di…
Vadorequest c2dbf88
Misc doc
Vadorequest 807f4ca
Refactor use of i18nContext and use useI18n hook instead
Vadorequest 1da7d17
misc doc
Vadorequest 5f66aaf
Ignore noisy warning
Vadorequest a0a961f
Fix 404 page (wasn't displaying any content when language was mistake…
Vadorequest 79a4bd7
Cleanup TS prop types
Vadorequest ef195a7
Misc code cleanup
Vadorequest d120423
Rename UniversalSSGPageProps > SSGPageProps and UniversalSSRPageProps…
Vadorequest 8b1daa4
Add example doc
Vadorequest bf63645
Refactored TS pageProps types, fixed a few typings mistakes
Vadorequest c7a010e
Improve pageProps types, and add TS helper to avoid struggling with p…
Vadorequest 771941d
Rename PageProps to SoftPageProps and avoid using it when we know wha…
Vadorequest 67ddeb6
Refactor _document and remove complex business logic that isn't neede…
Vadorequest 6df8375
Add more css class-based variables in body
Vadorequest fe705b6
Rename withApollo "ssr" option to "useGetInitialProps" to avoid peopl…
Vadorequest 434e168
Doc - Add note regarding target: severless
Vadorequest e3486d2
Refactoring errors handling (fixes some error handling bugs and depre…
Vadorequest dcf369d
Remove unused error handling in _app (errors in _app are properly cau…
Vadorequest 97e8251
Oops - Local testing got pushed
Vadorequest 0d93cac
Simplify error debug UI
Vadorequest 2d15936
Refactor _app and use Functional Component instead of class
Vadorequest 116d7c0
Misc
Vadorequest 92099a8
Use node v12.x for CI
Vadorequest f3d362a
Use router instead of window.href to let Next.js refresh the page wit…
Vadorequest 7284415
Cleanup hook usage
Vadorequest e502def
Add router to DOM for quick testing
Vadorequest f3c0487
Attempt to use router instance instead of singleton (unlikely to solv…
Vadorequest d38a999
Fix routing (?)
Vadorequest 58cd8a6
Fix TS type (forgot to add MultiversalAppBootstrapPageProps which are…
Vadorequest b52802b
Fix TS types + add better documentation
Vadorequest fad1e2d
Attempt to avoid redirects when an asset isn't found
Vadorequest 173578d
Update Next.js framework to v9.4.0 (gone through some issues with web…
Vadorequest 386ac66
Fix i18n language refresh when changing language from the client side…
Vadorequest c3c7a4e
Fix webpack custom env vars based on buildId (APP_VERSION_RELEASE) - …
Vadorequest a805751
Attempt to fix TypeError: Cannot set property 'process.env.APP_RELEAS…
Vadorequest 7e38b08
Remove isomorphic-unfetch dep - See https://nextjs.org/blog/next-9-4#…
Vadorequest 2a29911
Track web-vitals-metrics using Amplitude, by batch of 5 and 2 metrics…
Vadorequest d09ff7a
Small improvement + count bugfix
Vadorequest ead7777
Misc doc
Vadorequest 18fbc6d
Avoid tests being deployed as Vercel Serverless Functions (increases …
Vadorequest 151b8a6
Remove unused font
Vadorequest 1f48e47
Disable unused css (animate.css)
Vadorequest 886544c
Misc remove useless recompose/compose usage
Vadorequest 40e7edc
Always add img "alt" even if it's meaningless (fallback from "alt" to…
Vadorequest 163c4aa
Use WebP or JPEX XR whenever possible
Vadorequest 6482cbf
Use rel=noopener with Logo for security/perfs (good practice)
Vadorequest c9970d9
Fix tests and snapshots
Vadorequest 135b029
Load fonts async properly (avoid render-blocking)
Vadorequest 285957e
Track NRN_PRESET with amplitude
Vadorequest 1cfd411
Fix typo
Vadorequest c9a29b0
Upgrade next to 9.4.1 (patch)
Vadorequest ce9fb89
Upgrade @apollo/react-ssr to 3.1.5 (patch) - Should fix react warning…
Vadorequest 1e6493a
Upgrade @now/node to 1.6.1 (minor)
Vadorequest 11ca751
Upgrade Sentry to 5.15.5 (patch)
Vadorequest 6ef3204
Upgrade Amplitude to 6.2 (MAJOR)
Vadorequest 67d9cbf
Upgrade TypeScript to 3.9.2 (minor) - Perfs improvements https://www.…
Vadorequest fad6aef
Upgrade Jest to 26.0.1 (MAJOR) and related packages
Vadorequest f46cf79
Fix TS error due to recent upgrade
Vadorequest 0df98ef
Upgrade EsLint to 7.0.0 (MAJOR) + all eslint-related deps
Vadorequest 5021ed1
Reduce eslint noise
Vadorequest d0c4263
Upgrade TS types (definitelyTyped)
Vadorequest 1a4ff80
Upgrade various devDeps packages
Vadorequest 4877602
Upgrade Animate to 4.1.0 (MAJOR - BC)
Vadorequest c2c86cb
Rename animate classes using animate__ prefix - See https://animate.s…
Vadorequest 778a442
Upgrade bootstrap to 4.5.0 (minor)
Vadorequest 33ba256
Upgrade all Apollo-related deps
Vadorequest 918ab34
Upgrade all i18next/locize-related deps
Vadorequest 2a00ead
Add @next/bundle-analyzer and "next:bundle" command to help analyse t…
Vadorequest a58252c
Misc doc
Vadorequest b26c892
Improve I18nLink component, add more options and simplifies usage
Vadorequest b45cb66
Add ExternalLink component to simplify usage of external links (SEO, …
Vadorequest df4d6f5
Add component template to get started quickly
Vadorequest 902769e
Add TS @types for bootstrap
Vadorequest 83f893c
Add image optimisation example
Vadorequest 555b44b
Demo v2 - Full rework of the demo examples (#52)
Vadorequest ec66fef
Don't init Sentry if SENTRY_DSN isn't defined
Vadorequest 620c8c9
Add doc about native Next.js optimisations
Vadorequest 916e2a2
Update Next to v9.4.4
Vadorequest d46366f
Add indexes for folders (avoid directory listing) + improve sidebar p…
Vadorequest 0d0714c
Misc reorder SSG pages (getStaticPaths before getStaticProps) for con…
Vadorequest e370bf5
Add warning regarding unexpected 404 behaviour when using CSR links
Vadorequest File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
public/static/CDN/detect-outdated-browser/outdated-browser-rework.min.js
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.