fxa/apps/payments/next
Reino Muhl 1b9d7fff86
feat(next): reduce bundle size
Because:

- The `payments-next` builds are taking very long and using many system
  resources.
- Under normal operation, the `payments-next` service in dev mode is
  using a lot of memory and at times running into its 7gb memory limit,
  causing a service restart.

This commit:

- Adds Next.js bundle analyzer to `payments-next`
- Adds additional packages to serverComponentsExternalPackages.
  - By default Nextjs automatically bundles dependencies used in Server
    Components and Route Handlers. As a result, all dependencies used in
    the NestApp were being bundled by Next.js, which bloated the Next.js
    nodejs bundle.
  - All dependencies used in the NestApp, should not be included in the
    Next.js bundle, and should therefore be added to
    `serverComponentsExternalPackages` going forward.
  - Dependencies that are potentially used by Next.js as part of server
    side rendering or hydration of pages should still be included in the
    Next.js bundle, and should not be added to
    `serverComponentsExternalPackages`.

Closes #FXA-10712
2024-11-19 17:08:39 -05:00
..
app feat(next): add email, google, apple sign in 2024-11-14 16:58:25 -05:00
config feat(next): add email, google, apple sign in 2024-11-14 16:58:25 -05:00
lib feat(settings): Update AccountRecoveryConfirmKey to new design with hint 2024-09-23 14:00:09 -07:00
public feat(next): add l10n to localizer for next rsc 2024-04-08 14:58:17 -04:00
tests/app fix(payments-next): Move searchParams to params 2024-03-28 11:02:31 -04:00
.env.development feat(next): add email, google, apple sign in 2024-11-14 16:58:25 -05:00
.env.production feat(next): add email, google, apple sign in 2024-11-14 16:58:25 -05:00
.eslintrc.json chore: update nx to 19.5.1 and typescript to 5.5.3 2024-07-23 22:37:41 +00:00
Gruntfile.js fix(libs): Revise file structure for client and server components 2024-08-27 13:38:26 -04:00
auth.config.ts feat(next): attempt no prompt auth on landing 2024-04-30 12:37:09 -04:00
auth.ts feat(next): add email, google, apple sign in 2024-11-14 16:58:25 -05:00
index.d.ts fix(payments-next): Move searchParams to params 2024-03-28 11:02:31 -04:00
instrumentation.ts feat(next): add sentry to payments-next 2024-09-09 13:21:21 -04:00
jest.config.ts fix(payments-next): Move searchParams to params 2024-03-28 11:02:31 -04:00
middleware.ts feat(next): add paypal sdk 2024-08-29 12:19:07 -04:00
next-env.d.ts feat(recovery-key): Make inline recovery key flow functional + navigate desktop Sync signins 2024-09-20 10:36:56 -05:00
next.config.js feat(next): reduce bundle size 2024-11-19 17:08:39 -05:00
package.json feat(next): add sentry to payments-next 2024-09-09 13:21:21 -04:00
pm2.config.js feat(next): update payments-next build and restart 2024-06-18 10:45:04 -04:00
postcss.config.js fix(payments-next): Move searchParams to params 2024-03-28 11:02:31 -04:00
project.json chore(payments-next): Remove storybook 2024-10-17 12:07:50 -04:00
sentry.client.config.ts fix(next): resolve package import version warnings 2024-09-12 09:19:40 -04:00
sentry.server.config.ts fix(next): resolve package import version warnings 2024-09-12 09:19:40 -04:00
tailwind.config.ts feat(next): add payment element and submit 2024-05-08 10:37:14 -04:00
tsconfig.json chore(payments-next): Remove storybook 2024-10-17 12:07:50 -04:00
tsconfig.spec.json chore(next): Add Next.js to fxa and initial setup 2023-07-19 14:57:15 -04:00