Create T3 App Lighthouse Performances

How come the performance of the initial T3 app is low at 50/100?
9 Replies
Pod
Pod2y ago
If you click on each it'll give you more info
Brendonovich
Brendonovich2y ago
are you testing it in dev mode or production mode?
christrading
christradingOP2y ago
This was on localhost:3000 running yarn dev
Brendonovich
Brendonovich2y ago
Doing a lighthouse test in dev mode isn't the best idea, your app will load and run a lot slower. Doing a proper build should give much higher scores
christrading
christradingOP2y ago
Okay. I'll look into set up my production environment variables now so that I can run yarn build and check the Lighthouse sources on production
Brendonovich
Brendonovich2y ago
Good plan
christrading
christradingOP2y ago
To set up my environment variables and run in production, what I did was Create a random sequence of bytes for our NEXTAUTH_SECRET with command: openssl rand -base64 32 Add the sequence to the .env file NEXTAUTH_SECRET="your-random-sequence-value-here" Run commands
yarn build
yarn start
yarn build
yarn start
christrading
christradingOP2y ago
This was the resulting Lighthouse score
Want results from more Discord servers?
Add your server