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