Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions apps/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<meta name="theme-color" content="#fbf5ea" />
<meta name="color-scheme" content="light dark" />
<meta name="description" content="Split expenses and plan get-togethers with your people." />
<link rel="icon" href="/favicon.ico" sizes="32x32" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
<meta name="apple-mobile-web-app-capable" content="yes" />
Expand All @@ -29,6 +30,21 @@
name="twitter:description"
content="Split expenses and plan get-togethers with your people."
/>
<!-- The site name Google shows above search results, in place of the bare domain. -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebSite",
"name": "Potluck",
"alternateName": "Potluck by Fermulate",
"url": "%VITE_APP_URL%/",
"publisher": {
"@type": "Organization",
"name": "Fermulate",
"url": "https://fermulate.com/"
}
}
</script>
<style>
/* First paint before the token stylesheet loads. Values mirror @potluck/tokens. */
html {
Expand Down
Binary file added apps/web/public/favicon.ico
Binary file not shown.
26 changes: 20 additions & 6 deletions apps/web/public/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion apps/web/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down
14 changes: 7 additions & 7 deletions docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
Loading