Files
supabase/apps/www/data/Footer.ts
Sean OliverandDanny White f9fd4a2a9f feat(www,docs,kb): show Do Not Sell or Share footer link to US visitors (#53490)
## Problem

US visitors need a "Do Not Sell or Share My Personal Information" footer
link, and no site reads the visitor's country
([GROWTH-1369](https://linear.app/supabase/issue/GROWTH-1369)).

## Solution

- The www proxy copies the `x-vercel-ip-country` header into a
`_sb_country` cookie, which the footers read client-side. Docs and kb
route through www, so that covers all three.
- US visitors and unknown countries see the opt-out label. Everyone else
keeps "Privacy Settings". Both open the same modal.
- The link sits on each footer's copyright line, and the label stays
hidden until the cookie is read.
- Out of scope: GPC
([GROWTH-1373](https://linear.app/supabase/issue/GROWTH-1373)) and modal
copy ([GROWTH-1370](https://linear.app/supabase/issue/GROWTH-1370)).
- Tests cover US, non-US, unknown countries, and the cookie write.
Screenshots used a hand-set cookie.

**www**

| | Before | US | DE |
|---|---|---|---|
| 375px | <img
src="https://github.com/user-attachments/assets/1bd8bcb8-6692-4fe9-90a0-5343b0364053"
width="200"> | <img
src="https://github.com/user-attachments/assets/0514a0bd-ad1c-4773-b889-de941f5466b5"
width="200"> | <img
src="https://github.com/user-attachments/assets/328ca1b4-9698-492e-8045-a15d884108f2"
width="200"> |
| 1440px | <img
src="https://github.com/user-attachments/assets/3cb3e7d7-62ab-4d34-841c-23d50d7d1cd5"
width="300"> | <img
src="https://github.com/user-attachments/assets/caf75b29-7286-404a-b1ea-7dfa5022912c"
width="300"> | <img
src="https://github.com/user-attachments/assets/2c067209-39cd-4ad8-9987-4f8763d70660"
width="300"> |

**docs**

| | Before | US | DE |
|---|---|---|---|
| 375px | <img
src="https://github.com/user-attachments/assets/37248b4a-436b-4d2d-b2d3-3966117abf9e"
width="200"> | <img
src="https://github.com/user-attachments/assets/0b109a0d-7618-46f8-ade0-8ba17e390b56"
width="200"> | <img
src="https://github.com/user-attachments/assets/0047b2b8-7047-40df-8d9c-09f51e538fa4"
width="200"> |
| 1440px | <img
src="https://github.com/user-attachments/assets/0a7d6a65-e964-43dc-911e-0ea033cb1e91"
width="300"> | <img
src="https://github.com/user-attachments/assets/27922348-661c-4246-b3fc-44ac054bd084"
width="300"> | <img
src="https://github.com/user-attachments/assets/30afb171-1023-43ff-b77e-89f341128377"
width="300"> |

**kb**

| | Before | US | DE |
|---|---|---|---|
| 375px | <img
src="https://github.com/user-attachments/assets/cd4fb8d1-8827-4b1a-8d13-c2a5d4f97378"
width="200"> | <img
src="https://github.com/user-attachments/assets/2706ae24-3df8-4149-9a51-75abb0456734"
width="200"> | <img
src="https://github.com/user-attachments/assets/7afb8731-b487-4e48-ae83-a3a6bde36bee"
width="200"> |
| 1440px | <img
src="https://github.com/user-attachments/assets/3b2bdc17-fee7-4ec0-bd24-d35a0367a6ca"
width="300"> | <img
src="https://github.com/user-attachments/assets/479b03e6-6890-4714-bbbb-ab122f46e786"
width="300"> | <img
src="https://github.com/user-attachments/assets/252f4e0f-5bcc-4b43-aeda-784df9f000ca"
width="300"> |

## Review instructions

1. From a US IP, click the footer link on the www preview. The modal
opens.
2. From a non-US IP, see "Privacy Settings".

## Checklist

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)

---------

Co-authored-by: Danny White <3104761+dnywh@users.noreply.github.com>
2026-11-20 16:44:17 +09:00

226 lines
4.0 KiB
TypeScript

import {
appTypeSolutions,
migrationSolutions,
skillBasedSolutions,
useCaseSolutions,
} from 'data/Solutions'
const footerData = [
{
title: 'Product',
links: [
{
text: 'Pricing',
url: '/pricing',
},
{
text: 'Database',
url: '/database',
},
{
text: 'Auth',
url: '/auth',
},
{
text: 'Functions',
url: '/edge-functions',
},
{
text: 'Compute',
url: '/compute',
},
{
text: 'Realtime',
url: '/realtime',
},
{
text: 'Storage',
url: '/storage',
},
{
text: 'Vector',
url: '/modules/vector',
},
{
text: 'Cron',
url: '/modules/cron',
},
{
text: 'Feature Catalog',
url: '/features',
},
{
text: 'Launch Week',
url: '/launch-week',
},
],
},
{
title: 'Solutions',
links: [
...skillBasedSolutions.solutions.map((solution) => ({
text: solution.text,
url: solution.url,
})),
...useCaseSolutions.solutions.map((solution) => ({
text: solution.text,
url: solution.url,
})),
...appTypeSolutions.solutions.map((solution) => ({
text: solution.text,
url: solution.url,
})),
...migrationSolutions.solutions.map((solution) => ({
text: solution.text,
url: solution.url,
})),
],
},
{
title: 'Resources',
links: [
{
text: 'Blog',
url: '/blog',
},
{
text: 'Support',
url: '/support',
},
{
text: 'System Status',
url: 'https://status.supabase.com/',
},
{
text: 'Become a Partner',
url: '/partners',
},
{
text: 'Partner Catalog',
url: '/partners/catalog',
},
{
text: 'Knowledge Base',
url: '/kb',
},
{
text: 'FAQs',
url: '/kb/topics/faqs',
},
{
text: 'Brand Guidelines',
url: '/brand',
},
{
text: 'Security & Compliance',
url: '/security',
},
{
text: 'Regions',
url: '/regions',
},
{
text: 'dbarena',
url: 'https://dbarena.com',
},
{
text: 'SOC2',
url: '/security',
},
{
text: 'HIPAA',
url: 'https://forms.supabase.com/hipaa2',
},
],
},
{
title: 'Developers',
links: [
{
text: 'Documentation',
url: '/docs',
},
{
text: 'Supabase Library',
url: 'https://supabase.com/library',
},
{
text: 'Changelog',
url: '/changelog',
},
{
text: 'RSS',
url: '/rss.xml',
},
],
},
{
title: 'Community',
links: [
{
text: 'Events & Webinars',
url: '/events',
},
{
text: 'SupaSquad',
url: '/supasquad',
},
{
text: 'Contributing',
url: 'https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md',
},
{
text: 'Open Source',
url: '/open-source',
},
],
},
{
title: 'Company',
links: [
{
text: 'Company',
url: '/company',
},
{
text: 'Careers',
url: '/careers',
},
{
text: 'General Availability',
url: '/ga',
},
{
text: 'Legal Hub',
url: '/legal',
},
{
text: 'Privacy Policy',
url: '/privacy',
},
{
text: 'Acceptable Use Policy',
url: '/aup',
},
{
text: 'Humans.txt',
url: '/humans.txt',
},
{
text: 'Lawyers.txt',
url: '/lawyers.txt',
},
{
text: 'Security.txt',
url: '/.well-known/security.txt',
},
{
text: 'Contact Us',
url: '/contact-us',
},
],
},
]
export default footerData