How to add a file at /.well-known in a Lovable, Bolt or v0 app (for ownership or domain verification)
LaunchGuard (https://getlaunchguard.app) is a weekly health check for the app you shipped from Lovable, Cursor, Bolt, or v0. The first scan is free (no card) and shows your 1–2 most severe findings, with a fix prompt for each. Paid plans add the full report, a fix prompt for every finding, a weekly rescan and an emailed report. Before the scan runs you prove you own the app, with a file at /.well-known, a meta tag, or a DNS TXT record. Everything below you can do yourself in your builder, for free.
Scan your first app free — create an account, add the published URL of an app you own, then use the steps here to place the verification file (or a meta tag, or a DNS TXT record). The scan does not run until that proof is in place.
TL;DR
- A path under
/.well-known/is the standard place on a site for a small public file that proves you control the origin, or that holds site-wide metadata. (RFC 8615) - In a Lovable, Bolt, Vite or v0 / Next.js project, that file almost always belongs in
public/.well-known/, because assets inpublic/are served at the site root under the same filename. (Vite; Next.js; TanStack Start) - Create the file with the exact name and contents the tool shows you, publish (a draft or an editor preview is not enough), then open the live URL and check you get HTTP 200 and the token as plain text, not your homepage.
Why this is easy to get wrong
Tools that need to know you control a site — LaunchGuard, other scanners, and also Apple Universal Links or Android App Links — look for a file at a fixed address such as https://your-app.example/.well-known/something.txt. They fetch that address themselves. They do not look inside your Git repo, and they do not run your app's JavaScript first.
AI-built apps often serve the homepage for any unknown path. If the file is not in the published static files, the address returns your React app as HTML, and verification fails. The usual fix is: put the file in public/.well-known/, keep the leading dot in the folder name, and publish again.
LaunchGuard looks for a file at /.well-known/launchguard-verification.txt. The file must return HTTP 200, and one of its non-empty lines must be the token shown in your dashboard, either on its own or as launchguard-verification=<token>. A meta tag or a DNS TXT record also works; those are in Step 5.
Step 1 — Copy the exact path and token
In LaunchGuard, add your published app URL, then open the app and copy the token from the file card. The path is always:
https://<the-host-you-added>/.well-known/launchguard-verification.txt
Use the same hostname you entered. If you added www.example.com, do not put the file only on example.com, and the other way around. LaunchGuard does not follow a redirect to a different host.
The token is not a secret. Its only job is to be readable at that address, so a third party can see that you can publish a file there.
If you are placing a file for another tool (Search Console, Apple apple-app-site-association, Android assetlinks.json), use the path and contents that tool shows you. Bolt's own hosting docs describe adding those mobile link files in a .well-known folder and publishing them. (Bolt: Hosting)
Step 2 — Create the file in public/.well-known/
Do not import the file from JavaScript. Imported assets get a hashed filename in production, and the well-known URL would 404. Put it in the public directory so the name stays as-is. (Vite)
Lovable
New Lovable apps created from 13 May 2026 (22 June 2026 for Enterprise workspaces) use TanStack Start. Older apps use React + Vite. (Lovable: FAQ) In both stacks, static files in public/ are served from the site root. TanStack Start's docs use the same convention: a file at public/robots.txt is served at /robots.txt. (TanStack Start: SEO)
In the Lovable project chat, paste a prompt like this (put your own token in):
Create the file public/.well-known/launchguard-verification.txt
with this single line and nothing else:
lgv_PASTE_THE_TOKEN_FROM_LAUNCHGUARD
Do not import the file from JavaScript. Keep the folder name
exactly .well-known, including the leading dot.
Then publish. Publishing takes a snapshot of the project and puts it on your lovable.app URL (or your custom domain). Later changes stay off the live site until you click Publish changes. (Lovable: Publish; Lovable: Hosting)
Use the published URL, not the editor preview. The "Open in new tab" preview URL requires a Lovable login with access to the project, so an outside check cannot read it. A shared preview link is also not your production URL. (Lovable: Preview)
Custom domains are available on paid plans. (Lovable: FAQ) If you have connected one, add that final address in LaunchGuard, not a hostname that only redirects to it.
Bolt
Ask Bolt to create the file in a .well-known folder that is included when the project is published. Bolt's hosting docs use the same pattern for apple-app-site-association and assetlinks.json: after you publish, the files are available on your .bolt.host address and on your custom domain. (Bolt: Hosting)
Most Bolt frontends are Vite apps, so the file should land at public/.well-known/launchguard-verification.txt. (Vite)
Custom domains on Bolt hosting are available to Pro users. Free and Pro users can both publish to a .bolt.host domain. (Bolt: Hosting)
v0 / Next.js (including Vercel)
Create public/.well-known/launchguard-verification.txt. Next.js serves files in public/ from the base URL: public/avatars/me.png is available at /avatars/me.png. (Next.js: public folder)
Redeploy, then open the published hostname (your custom domain, or the *.vercel.app URL if that is the address you added).
Step 3 — Check the live file yourself
In a terminal, against the published URL only:
curl -sS -D - -o /tmp/well-known-body.txt \
"https://<the-host-you-added>/.well-known/launchguard-verification.txt"
echo "---- body ----"
cat /tmp/well-known-body.txt
What you want:
- A status line with
200 - A body that is the token (plain text), not an HTML page
- No redirect to a different hostname in the
location:header
If the body starts with <!doctype html> or looks like your homepage, the path is falling through to the app. The file is missing from the published output, the folder is not named .well-known, or you have not published since you added it.
If you get 401 or a login page, you are hitting a preview or a site that is not public. Switch to the published address.
Then go back to LaunchGuard and verify ownership.
Step 4 — Alternatives, if the file is awkward
Any one of these three is enough for LaunchGuard.
Meta tag. Add this to the HTML the server sends for the homepage, then publish. A tag inserted later by client-side JavaScript is not seen.
<meta name="launchguard-verification" content="lgv_PASTE_THE_TOKEN_FROM_LAUNCHGUARD">
Where to put it:
- Older Lovable (React + Vite) and most Bolt Vite apps: inside
<head>inindex.html. - Newer Lovable (TanStack Start): on the root route's
head, for examplemeta: [{ name: 'launchguard-verification', content: 'lgv_…' }]. (TanStack Start: SEO) - Next.js / v0: in
app/layout.tsx, using the Metadataotherfield, which renders<meta name="…" content="…">:
import type { Metadata } from 'next'
export const metadata: Metadata = {
other: {
'launchguard-verification': 'lgv_PASTE_THE_TOKEN_FROM_LAUNCHGUARD',
},
}
(Next.js: generateMetadata, other)
DNS TXT record. This only works on a domain whose DNS you control. It does not work on *.lovable.app, *.bolt.host or *.vercel.app. Add a TXT record on the hostname you entered, or on _launchguard.<that-hostname>, whose value is the token or launchguard-verification=<token>. Custom domains on Lovable require a paid plan; on Bolt hosting they require Pro. (Lovable: FAQ; Bolt: Hosting)
Copy-paste fix prompt for Lovable, Bolt or Cursor
Add a site-verification file for LaunchGuard.
1. Create public/.well-known/launchguard-verification.txt containing
exactly this single line and nothing else:
lgv_PASTE_THE_TOKEN_FROM_LAUNCHGUARD
2. Do not import the file from JavaScript. Keep the folder name
exactly .well-known, including the leading dot, so the live URL is
/.well-known/launchguard-verification.txt.
3. Also add this tag to the HTML the server sends for the homepage
(index.html <head>, or the root layout / root route head — not a
tag injected by client-side JavaScript):
<meta name="launchguard-verification" content="lgv_PASTE_THE_TOKEN_FROM_LAUNCHGUARD">
4. Show me the files you changed, then tell me to publish or redeploy
and to open the published URL (not a preview URL) and confirm the
file returns HTTP 200 with that line as plain text.
FAQ
I created the file and verification still fails. Have you published since you added it? Open the exact published URL with curl (Step 3). If you see HTML, the file is not in the published output.
Can I verify a preview URL? Use the published URL. Lovable's editor preview "Open in new tab" address requires a Lovable login. (Lovable: Preview) LaunchGuard also needs a URL it can fetch without signing in.
My custom domain redirects from the apex to www (or from a platform URL to my domain). Add the hostname that actually serves the file. A check that refuses a redirect to a different host will fail if you added the address that only redirects.
Is the token a secret? No. Anyone who can open the file or view the homepage source can read it. That is the point of a publication check. Do not put API keys or passwords in a well-known file.
I need this file for iOS or Android app links, not LaunchGuard. Same placement: a .well-known folder included in the published site. Bolt documents this for apple-app-site-association (no file extension) and assetlinks.json. (Bolt: Hosting)
Scan your first app free
Once the file, the meta tag, or the DNS record is live, Scan your first app free. Sign up, add the published URL, prove ownership, and the first scan shows your 1–2 most severe findings with a fix prompt. No card. Solo is $9 per month for 1 app; Pro is $24 per month for up to 5 apps. LaunchGuard scans only apps you own and verify.
Sources
- IETF RFC 8615 — Well-Known Uniform Resource Identifiers (URIs): https://www.rfc-editor.org/rfc/rfc8615
- Vite docs — Static Asset Handling, the
publicdirectory: https://vite.dev/guide/assets - Next.js docs —
publicFolder: https://nextjs.org/docs/app/api-reference/file-conventions/public-folder - Next.js docs —
generateMetadata,other(custom meta tags): https://nextjs.org/docs/app/api-reference/functions/generate-metadata#other - TanStack Start docs — SEO (
public/robots.txtis served at/robots.txt; routeheadmeta): https://tanstack.com/start/latest/docs/framework/react/guide/seo - Bolt help — Host your Bolt project (publishing,
.well-knownfor app links, custom domains on Pro): https://support.bolt.new/bolt-cloud/hosting - Lovable docs — FAQ (TanStack Start vs React + Vite; custom domains on paid plans): https://docs.lovable.dev/introduction/faq
- Lovable docs — Publish your Lovable project: https://docs.lovable.dev/features/publish
- Lovable docs — How Lovable hosts your app: https://docs.lovable.dev/features/hosting
- Lovable docs — Preview and test your app (published URL vs preview; preview tab requires login): https://docs.lovable.dev/features/projects/preview
Last checked against the sources above: 26 November 2026.