diff --git a/apps/web/index.html b/apps/web/index.html index d886520f..f20ba24f 100644 --- a/apps/web/index.html +++ b/apps/web/index.html @@ -6,6 +6,7 @@ + @@ -29,6 +30,21 @@ name="twitter:description" content="Split expenses and plan get-togethers with your people." /> + + + + + + + diff --git a/apps/web/vite.config.ts b/apps/web/vite.config.ts index 57bc68ba..ead01324 100644 --- a/apps/web/vite.config.ts +++ b/apps/web/vite.config.ts @@ -29,7 +29,7 @@ export default defineConfig(({ mode }) => ({ registerType: 'autoUpdate', // Deferred so the registration script never blocks the first paint. injectRegister: 'script-defer', - includeAssets: ['favicon.svg', 'icon.svg', 'apple-touch-icon.png'], + includeAssets: ['favicon.ico', 'favicon.svg', 'icon.svg', 'apple-touch-icon.png'], workbox: { // Push and notification click handlers live in a plain script next to the app. importScripts: ['push-sw.js'], diff --git a/docs/development.md b/docs/development.md index 0e4e68c1..b9e22d69 100644 --- a/docs/development.md +++ b/docs/development.md @@ -30,13 +30,13 @@ pnpm dev # http://localhost:5173 The web app reads `.env.local` from the repo root (`envDir` in `apps/web/vite.config.ts`). Only `VITE_*` variables reach the browser, and everything in them is public. -| Variable | Local value | What it is | -| ------------------------------- | -------------------------------------------------- | ------------------------------------------------------------------------------------------------------ | -| `VITE_SUPABASE_URL` | `http://127.0.0.1:54321` | Supabase API URL | -| `VITE_SUPABASE_PUBLISHABLE_KEY` | printed by `pnpm db:start` (`npx supabase status`) | publishable (anon) key. RLS decides what it can do | -| `VITE_APP_URL` | `http://localhost:5173` | base URL for links the app builds (invites, redirects) and for the social preview tags in `index.html` | -| `VITE_VAPID_PUBLIC_KEY` | empty, or your own key | web push public key. Leave empty to turn push off locally | -| `VITE_DOCS_URL` | empty | user guide that help links open. Empty means the public guide at `https://docs.potluck.fermulate.com` | +| Variable | Local value | What it is | +| ------------------------------- | -------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | +| `VITE_SUPABASE_URL` | `http://127.0.0.1:54321` | Supabase API URL | +| `VITE_SUPABASE_PUBLISHABLE_KEY` | printed by `pnpm db:start` (`npx supabase status`) | publishable (anon) key. RLS decides what it can do | +| `VITE_APP_URL` | `http://localhost:5173` | base URL for links the app builds (invites, redirects) and for the social preview tags and site name JSON-LD in `index.html` | +| `VITE_VAPID_PUBLIC_KEY` | empty, or your own key | web push public key. Leave empty to turn push off locally | +| `VITE_DOCS_URL` | empty | user guide that help links open. Empty means the public guide at `https://docs.potluck.fermulate.com` | `pnpm build` (a production build) stops with an error when `VITE_SUPABASE_URL`, `VITE_SUPABASE_PUBLISHABLE_KEY` or `VITE_APP_URL` is missing, so a deploy can never ship pointing at a local Supabase or with a literal `%VITE_APP_URL%` in `index.html`. `pnpm dev` and the unit tests keep working without them.