Skip to content
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

V2 - New preset v2-mst-aptd-gcms-lcz-sty with hybrid SSG/SSR instead of SSR-only (based on v1-ssr-mst-aptd-gcms-lcz-sty) #68

Open
wants to merge 459 commits into
base: v1-ssr-mst-aptd-gcms-lcz-sty
Choose a base branch
from

Conversation

Vadorequest
Copy link
Member

@Vadorequest Vadorequest commented May 30, 2020

Demos

Status

This PR/branch is stable and has been added as the new official/default NRN preset.

We still have some features to implement, but they're secondary.

Notes

This PR is not meant to be merged, but to provide a diff against the base branch (which was a preset using SSR-only, and has been deprecated now that v2 is released)

PR from #42 (preset branch was renamed, thus forcing us to open a new PR), useful for extra context (discussions about technical implementation)


New features in this PR:

  • Language detection and redirect to preferred language (using experimental redirects/rewrites)
  • Sub locales support - fr, en, fr-FR and en-US are possible (change url directly to see it in action, or use the footer language icon)
  • Use of hooks in favour of HOCs whenever better
  • SSG/SSR compatible Apollo client (GraphCMS backend for demo)
  • Automatic static optimisation enabled (no _app.getInitialProps)
  • SSG-first (my own personal goal is to use 100% SSG web apps, but we do support hybrid apps out of the box)
  • Reusable getStaticProps/getServerSideProps (not supported to use them app-wide in _app yet, so we made reusable helpers instead)
  • Proper rehydration and server/bowser reconciliation, following https://joshwcomeau.com/react/the-perils-of-rehydration
  • Examples with SSG/SSR, and dedicated SSG examples with fallback/revalidate options
  • Improved errors handling (top-level, etc.)
  • Next.js v9.4.0
  • Track perfs statistics "web-vitals-metrics"
  • Complete redesign of the demo app (v2)

Roadmap - In progress

Roadmap - Backlog

  • E2E (tests or redirections, url rewriting, navigation, i18n-related features)

Done

Optional other improvements

On hold (stuck, any help appreciated)

Known bugs

All fixed

@Vadorequest
Copy link
Member Author

[GitHub Actions]
Deployment SUCCESS
Commit e370bf5 successfully deployed to https://nrn-v1-hyb-mst-aptd-gcms-lcz-sty-c1-ao0l3r888.now.sh
Deployment aliased as https://v2-mst-aptd-gcms-lcz-sty.now.sh

@Vadorequest Vadorequest added the preset-branch This branch is a preset and is not meant to be merged, but to be used as a DIFF tool for learning. label May 30, 2020
@Vadorequest
Copy link
Member Author

[GitHub Actions]
Deployment SUCCESS
Commit 27919d0 successfully deployed to https://nrn-v2-mst-aptd-gcms-lcz-sty-c1-4p23y8r43.now.sh
Deployment aliased as https://v2-mst-aptd-gcms-lcz-sty.now.sh

@Vadorequest
Copy link
Member Author

[GitHub Actions]
E2E tests FAILED
Download artifacts (screenshots + videos) from checks section at the top

@Vadorequest
Copy link
Member Author

[GitHub Actions]
Deployment SUCCESS
Commit 9816507 successfully deployed to https://nrn-v2-mst-aptd-gcms-lcz-sty-c1-6yil4uia1.now.sh
Deployment aliased as https://v2-mst-aptd-gcms-lcz-sty.now.sh

@Vadorequest
Copy link
Member Author

[GitHub Actions]
E2E tests SUCCESS

@Vadorequest Vadorequest added this to Released in Presets roadmap May 30, 2020
@Vadorequest
Copy link
Member Author

[GitHub Actions]
Deployment SUCCESS
Commit 199a540 successfully deployed to https://nrn-v2-mst-aptd-gcms-lcz-sty-c1-4tcdjsq1t.now.sh
Deployment aliased as https://v2-mst-aptd-gcms-lcz-sty.now.sh

@Vadorequest
Copy link
Member Author

[GitHub Actions]
Deployment SUCCESS
Commit 337fb99 successfully deployed to https://nrn-v2-mst-aptd-gcms-lcz-sty-c1-c8i45yt8m.now.sh
Deployment aliased as https://v2-mst-aptd-gcms-lcz-sty.now.sh

@Vadorequest
Copy link
Member Author

[GitHub Actions]
Deployment SUCCESS
Commit df72481 successfully deployed to https://nrn-v2-mst-aptd-gcms-lcz-sty-c1-q5pe4nyup.now.sh
Deployment aliased as https://v2-mst-aptd-gcms-lcz-sty.now.sh

@Vadorequest
Copy link
Member Author

[GitHub Actions]
Deployment SUCCESS
Commit fd494c6 successfully deployed to https://nrn-v2-mst-aptd-gcms-lcz-sty-c1-knuljgn6i.now.sh
Deployment aliased as https://v2-mst-aptd-gcms-lcz-sty.now.sh

@Vadorequest
Copy link
Member Author

[GitHub Actions]
Deployment FAILED
Commit 628f205 failed to deploy to (click to see logs)

@Vadorequest
Copy link
Member Author

[GitHub Actions]
Deployment SUCCESS
Commit 119a4a2 successfully deployed to https://nrn-v2-mst-aptd-gcms-lcz-sty-c1-k0jrkvp5p.now.sh
Deployment aliased as https://v2-mst-aptd-gcms-lcz-sty.now.sh

…e been removed a long time ago, was installed as dep)
@Vadorequest
Copy link
Member Author

[GitHub Actions]
Deployment SUCCESS
Commit 2888c12 successfully deployed to https://nrn-v2-mst-aptd-gcms-lcz-sty-c1-an7m6e32c.now.sh
Deployment aliased as https://v2-mst-aptd-gcms-lcz-sty.now.sh

@Vadorequest
Copy link
Member Author

Vadorequest commented Jun 3, 2020

E2E are failing again, seems related to vercel. Maybe they changed something, the tests aren't applied on the deployment but on vercel's homepage.


Well, it's working again... I noticed it those few days, seems random, probably a latency issue making tests run too early, before Vercel page is ready?

…turn props under nested "props" key (keep similar API between SSG and SSR, better code reusability)
@Vadorequest
Copy link
Member Author

[GitHub Actions]
Deployment SUCCESS
Commit 0c3fe60 successfully deployed to https://nrn-v2-mst-aptd-gcms-lcz-sty-c1-d9p099cui.now.sh
Deployment aliased as https://v2-mst-aptd-gcms-lcz-sty.now.sh

@Vadorequest
Copy link
Member Author

[GitHub Actions]
Deployment SUCCESS
Commit bd308fe successfully deployed to https://nrn-v2-mst-aptd-gcms-lcz-sty-c1-8e2pauc1h.now.sh
Deployment aliased as https://v2-mst-aptd-gcms-lcz-sty.now.sh

@Vadorequest
Copy link
Member Author

[GitHub Actions]
Deployment SUCCESS
Commit 0fd1aae successfully deployed to https://nrn-v2-mst-aptd-gcms-lcz-sty-c1-5y65ioi14.now.sh
Deployment aliased as https://v2-mst-aptd-gcms-lcz-sty.now.sh

@github-actions github-actions bot temporarily deployed to customer1-production June 24, 2021 15:49 Inactive
@github-actions github-actions bot temporarily deployed to storybook June 24, 2021 16:01 Inactive
@github-actions
Copy link

✅  Deployment SUCCESS
Commit a5ad627 successfully deployed Storybook static site 📖 to https://nrn-v2-mst-aptd-gcms-lcz-sty-storybook-gfu1195c7-unly-oss.vercel.app
Deployment aliases (1): nrn-v2-mst-aptd-gcms-lcz-sty-storybook.vercel.app

@github-actions
Copy link

✅  E2E tests SUCCESS for commit a5ad627 previously deployed Storybook static site at https://nrn-v2-mst-aptd-gcms-lcz-sty-storybook-gfu1195c7-unly-oss.vercel.app

@github-actions github-actions bot temporarily deployed to customer1-production June 24, 2021 16:37 Inactive
@github-actions github-actions bot temporarily deployed to customer1-production June 24, 2021 20:21 Inactive
* Re-export Sentry from init (DX) and call init from error endpoint to see if it fixes the issue with flush() timeout

* Improve sentry init documentation + rollback to timeout 2s + auto-init Sentry when using configureReq

* Implement better error handling on _error page (enrich Sentry metadata from req object)

* Fix 404 error handling and reporting to Sentry

* Improve documentation about error handling

* Upgrade Sentry to latest (minor)
@github-actions github-actions bot temporarily deployed to storybook June 25, 2021 07:49 Inactive
@github-actions github-actions bot temporarily deployed to customer1-production June 25, 2021 07:49 Inactive
@github-actions
Copy link

✅  Deployment SUCCESS
Commit 5ea63ac successfully deployed Storybook static site 📖 to https://nrn-v2-mst-aptd-gcms-lcz-sty-storybook-fzs6017tx-unly-oss.vercel.app
Deployment aliases (1): nrn-v2-mst-aptd-gcms-lcz-sty-storybook.vercel.app

@github-actions
Copy link

✅  E2E tests SUCCESS for commit 5ea63ac previously deployed Storybook static site at https://nrn-v2-mst-aptd-gcms-lcz-sty-storybook-fzs6017tx-unly-oss.vercel.app

@github-actions github-actions bot temporarily deployed to customer1-production June 25, 2021 08:22 Inactive
@github-actions github-actions bot temporarily deployed to customer1-production June 25, 2021 10:05 Inactive
@github-actions github-actions bot temporarily deployed to customer1-production October 18, 2021 11:44 Inactive
@github-actions
Copy link

✅  Deployment SUCCESS
Commit 06a6a37 successfully deployed Storybook static site 📖 to https://nrn-v2-mst-aptd-gcms-lcz-sty-storybook-3kgtlv1hh-unly-oss.vercel.app
Deployment aliases (1): nrn-v2-mst-aptd-gcms-lcz-sty-storybook.vercel.app

@github-actions
Copy link

✅  E2E tests SUCCESS for commit 06a6a37 previously deployed Storybook static site at https://nrn-v2-mst-aptd-gcms-lcz-sty-storybook-3kgtlv1hh-unly-oss.vercel.app

@github-actions
Copy link

❌  Deployment FAILED
Commit c5d5eb9 failed to deploy Storybook static site to
click to see logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
preset-branch This branch is a preset and is not meant to be merged, but to be used as a DIFF tool for learning. preset-released Preset that's been released and is ready to be used
Projects
Presets roadmap
  
Released
Development

Successfully merging this pull request may close these issues.

None yet

3 participants