Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

[SKUNK] Optimizations - Upgrade to Next13, reduce bundle size, fix security bug, etc. #471

Open
wants to merge 20 commits into
base: main
Choose a base branch
from

Conversation

mcolella14
Copy link
Collaborator

Worked on some optimizations during skunkworks. Wanted to make the client-side first-load js bundles smaller, but flora is not optimized for that. Still, the total bundle size now does not include the mocks, and we are on Next.js 13, which has a number of unstable features to help performance that we can leverage once they become stable.

@github-actions
Copy link

github-actions bot commented Mar 14, 2023

Coverage report

❌ An unexpected error occurred. For more details, check console

Error: The process '/opt/hostedtoolcache/node/16.19.1/x64/bin/npx' failed with exit code 1
St.
Category Percentage Covered / Total
🟡 Statements 68.8% 1782/2590
🟡 Branches 61.86% 657/1062
🟡 Functions 60.23% 477/792
🟡 Lines 69.56% 1545/2221

Test suite run success

117 tests passing in 36 suites.

Report generated by 🧪jest coverage report action from 6f8a628

src/pages/auth/signin.tsx Fixed Show fixed Hide fixed
Copy link
Collaborator

@harikakotipalli harikakotipalli Mar 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pablosichert/react-truncate#153 - may be worth exploring this option to adding this file.

@@ -23,7 +23,9 @@ import {
} from '../utils/seo';
import { customCache } from '../utils/emotion';

import '../../mocks/run-msw';
if (process.env.NEXT_PUBLIC_API_MOCKING === 'enabled') {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this related to Nextjs upgrade ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No this is related to bundle size.

@github-actions
Copy link

Coverage report

St.
Category Percentage Covered / Total
🟡 Statements 77.27% 1741/2253
🟡 Branches 66.86% 678/1014
🟡 Functions 69.96% 489/699
🟡 Lines 77.67% 1496/1926

Test suite run success

117 tests passing in 36 suites.

Report generated by 🧪jest coverage report action from a46c08f

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants