28bbaa52f1
fix: better like count
2026-04-19 18:47:11 +01:00
NigelWD
7a018c077f
performancehelp
...
Changes
- src/app/mii/[id]/page.tsx — enable ISR (revalidate = 300), dedupe the two Prisma findUnique calls via React cache(), and remove auth() from the
render path so Cloudflare can cache the HTML.
- src/lib/rate-limit.ts — add a handleByIp() variant that skips the DB session lookup for anonymous reads.
- src/app/mii/[id]/image/route.ts — use handleByIp() and bump Cache-Control max-age from 60s to 24h for mii / qr-code / features (kept 60s on gallery
imageN since those aren't in your edit purge list).
- src/app/api/submit/route.ts — pin the Mii studio fetch hostname to studio.mii.nintendo.com (SSRF hardening).
- src/lib/auth.ts — reject Google sign-ins with email_verified: false.
Performance boost
- DB queries per Mii page + its images: ~8 → ~1 (−85%)
- /mii/[id] TTFB at the edge: ~24s → <100ms on cached hits
- Cloudflare cache window for stable image types: 60s → 24h (1440× longer)
2026-04-16 22:09:52 -04:00
d947f09112
feat: youtube video instructions
...
also the repo is public again
2026-04-08 11:29:59 +01:00
99beabd385
feat: better notices for queued miis
2026-04-06 16:46:56 +01:00
926dd9dd6b
feat: add duration to queue message
2026-04-02 20:09:26 +01:00
bf670afcf1
feat: send edited miis with bad images to queue as well
...
related to 975d55bd
2026-04-02 15:01:32 +01:00
975d55bd19
feat: add miis with alleged inappropriate images to queue
2026-04-02 13:46:12 +01:00
1bf83e4cae
fix: likes not working with cache rules ( #18 )
2026-03-30 12:50:17 +01:00
7925c9e2f5
feat: controversial miis
...
at the time of writing, the poll is at 74% on option 2 (this one) with
14 hours to go. i keep getting reports so it's coming early
2026-03-29 21:41:38 +01:00
41a31311b5
fix: text overflow on profiles and miis
2026-03-29 12:37:08 +01:00
341b8f58a5
fix: like buttons not working with cache rules
2026-03-28 20:33:28 +00:00
2055f61527
fix: optimize images (again)
2026-03-28 13:26:22 +00:00
fd11f996df
feat: makeup filter, bad_quality report type
2026-03-28 11:48:59 +00:00
2066b9fb4b
feat: crop portrait and split portrait+features image
2026-03-27 12:21:51 +00:00
74139dd54e
feat: use data from demo
2026-03-25 19:57:58 +00:00
22911804c0
Merge branch 'main' into feat/living-the-dream-manually
2026-03-25 16:49:28 +00:00
8fffa1c9cc
feat: remove usernames
2026-03-24 22:09:00 +00:00
13941e849c
feat: view instructions on mii page
2026-02-28 16:57:43 +00:00
5995afe3db
feat: metadata images for switch platform
...
also some other changes
2026-02-28 12:33:36 +00:00
e31141ea39
feat: fake mii editor
2026-02-27 23:27:40 +00:00
d45eb07879
feat: nonbinary miis
2026-02-24 17:24:33 +00:00
0b1516e930
Merge branch 'main' into feat/living-the-dream-qr-code
2026-02-24 16:36:56 +00:00
118739041f
Merge branch 'main' into feat/living-the-dream-qr-code
2026-02-20 15:23:11 +00:00
df30270cc6
fix: 2e334d15 bug
2026-02-01 22:06:24 +00:00
2e334d155f
fix: allowed copying build error
...
changed allow copying to optional due to switch game
2026-02-01 20:38:30 +00:00
cd34fb983d
feat: random stuff
2026-01-02 16:36:59 +00:00
2af1bf18a6
Merge branch 'main' into feat/living-the-dream-qr-code
2026-01-02 16:25:13 +00:00
46a168b56c
feat: profile about me sections
2025-11-10 19:20:33 +00:00
69cf02e018
feat: fancy internal links in mii descriptions
2025-10-29 22:48:30 +00:00
347fa4824e
feat: use name instead of username for mii page
2025-10-29 20:21:38 +00:00
6ffb85c49c
style: improve descriptions' whitespace
2025-10-29 19:59:52 +00:00
f0df04d47c
chore: update packages
2025-10-29 19:46:33 +00:00
76fecca011
fix: remove island name from metadata in mii page
...
only automatically works for 3DS and I don't want to ask people for an
island name if on switch
2025-09-15 22:20:30 +01:00
b806f2c958
feat: add alt to images for SEO
...
SEO PART 18457
2025-09-15 22:18:42 +01:00
43c67d75a9
feat: platform filter, filtering redesign, show platform on mii pages
2025-09-14 15:27:13 +01:00
90a6b741be
feat: groundwork for different platform tutorials
2025-09-14 12:36:11 +01:00
20f1c51f0c
feat: groundwork for 'living the dream' mii submissions
...
Based on the screenshots from yesterday's Nintendo Direct, it is
presumed that the Mii editor in "Living the Dream" is similar to
Miitopia's one.
This commit lays the groundwork for Miis created in the sequel game.
However, due to the way TomodachiShare generates portraits of the Miis,
I can't do that unless there is a way to parse the QR code data and
render the Mii.
Note: I don't know if Nintendo will use access codes (as was the case
with Miitopia) therefore, as a precaution, another branch will be
created in anticipation for that.
2025-09-13 15:03:12 +01:00
df6ff9fd13
style: increase visibility of mii page gallery
2025-08-29 17:25:08 +01:00
be36378a56
style: standardize gender information on mii page with gender select
2025-08-29 17:24:12 +01:00
779e5550a3
refactor: move offscreen metadata images from index to mii page
2025-08-24 20:02:42 +01:00
a37759622a
feat: add aria-label to buttons and links
2025-07-18 22:40:24 +01:00
0c7be71b2c
feat: redesign reports in admin panel
2025-05-25 11:31:52 +01:00
8c0a7c47a3
feat: share mii button
2025-05-22 22:30:08 +01:00
de2c281257
feat: 'metadata' image generation for miis
...
for use on search engines
2025-05-21 22:02:35 +01:00
ada54d46c8
style: use brightness instead of scale on hover for qr-code image in mii page
2025-05-21 18:29:54 +01:00
9b8c697f66
feat: my likes page and redesign profile page
2025-05-14 20:13:25 +01:00
58032ed31b
refactor: update metatags
2025-05-10 19:57:35 +01:00
398580e72b
feat: mii descriptions
2025-05-07 21:06:10 +01:00
8753358a48
style: redesign mii page
...
also adds a gender viewer!
2025-05-07 21:06:10 +01:00
60cc4d1de9
style: use flex-wrap for tags in mii page
2025-05-04 23:14:18 +01:00