Create T3 App Lighthouse Performances

How come the performance of the initial T3 app is low at 50/100?
9 Replies
Pod
Pod16mo ago
If you click on each it'll give you more info
Brendonovich
Brendonovich16mo ago
are you testing it in dev mode or production mode?
christrading
christrading16mo ago
This was on localhost:3000 running yarn dev
Brendonovich
Brendonovich16mo 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
christrading16mo 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
Brendonovich16mo ago
Good plan
christrading
christrading16mo 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
christrading16mo ago
This was the resulting Lighthouse score