Publish a Gemini Canvas app as a real website, on your own domain
A Gemini Canvas share link opens inside Gemini, not on a domain you own. Gemini does not provide a custom domain. Copy the code, save it as index.html, drop it on DropTheHassle for a free HTTPS link, then buy a .com for €19 / $19 a year, including VAT in the EU, the same every year, or point a domain you own. You already built it. Now it's on your name.
Your AI can publish. It can never spend your money.
Built it with ChatGPT, Claude, Gemini, Cursor, Replit, v0, Windsurf or by hand? Same steps.
Last updated: 11 October 2026.
What the share link does
Share and export gives a g.co/gemini/share link that opens only in Gemini. Anyone with the link can view the content. Google's Canvas help also says that for a shared app, anyone with the link can see and change the app's data. Do not use that link for something private. Export from Canvas goes to Docs, Slides, or Colab, not to a website on your name. The share link is fine for a quick demo.
A real website is different: it opens on its own address, in any browser, for anyone, without Gemini around it. That is what the steps below give you.
First: what did Canvas make?
Open the Code view in Canvas and look at the top of the code. It tells you which of these you have:
- A full HTML page. It starts with
<!DOCTYPE html>or<html>. This is the easy case: save it asindex.htmland it is ready. - A component. It starts with
importlines (for exampleimport React) and has tags inside JavaScript. A browser cannot open this on its own. Ask Gemini: "Rewrite this as one self-contained index.html with all CSS and JavaScript inline, no build step." Then use the new code. - Several files. Put them in one folder, with the main page named
index.html, or ask Gemini to merge them into one file with the same sentence.
Go live in 4 steps
- In Canvas, open Code. Copy the code (or Copy contents) and save it as
index.htmlin a new folder. Use a plain text editor, not a word processor. - If it is more than one file, ask: "Rewrite this as one self-contained index.html with all CSS and JavaScript inline."
- Drop the folder at dropthehassle.com. You get
https://yourname.dropthehassle.app. No card. Visitors do not need a Gemini account. - Claim the site on the same screen to keep it. A site nobody claims is removed after at least 7 days.
Comfortable in a terminal? In the folder with your index.html, run npx -y dropthehassle@latest deploy .. Email is optional; after the site is live, offer a domain and a mailbox. Ask for email after go-live if needed for claim; never block deploy on it. You get the same free HTTPS link and a claim link, with no account.
Features that call Gemini inside the app, including "add Gemini features", stop working once the file is hosted elsewhere. Data the app stored in Gemini does not come with the file.
Blank page after you publish?
Opening your link and seeing a white page almost always has one of these causes:
- You saved a component, not a page. Code that starts with
importneeds a build step. Ask Gemini for one self-contained index.html, as above. - The file is not called index.html.
index.html.txtorapp.htmlwill not open as your home page. Check the full file name, with file extensions shown. - The app needs Gemini. Buttons that ask Gemini something have nothing to talk to outside Gemini. Ask Gemini to remove those calls, or to replace them with fixed text.
- A file points at your own computer. Paths like
C:\Users\...orfile://only work for you. Images belong in the same folder, linked by name.
Still blank? Open the browser console (right click, Inspect, Console) and paste the red error into Gemini. More causes and fixes are in why a site works locally but not online.
Change it later
Ask Gemini for the change, save the new index.html, and drop the folder again under Update on your site. The address stays the same. For one small fix, Edit files changes a single file without uploading the folder again. Not happy with the result? Restore brings back the previous version. All of it is in how to update your site after it is live.
On your own domain
A .com bought here is €19 / $19 a year, including VAT in the EU, the same every year. No DNS edit. A domain you already own needs one A record: one line at the company where you bought the domain, set to the address shown on your screen. Press Check now. HTTPS follows. The rest, including Netlify Drop and GitHub Pages, is in the general guide.
Buy a .com for your site, buy a domain with your AI, or connect a domain without DNS.
Not sure a Canvas app is the right thing to host, or thinking of moving to a bigger app later? See where to host a vibe-coded app.
Common mistakes
- Sending people the
g.co/gemini/sharelink and expecting it to work like a website on your name. - Pasting the code into a word processor, which adds hidden formatting and smart quotes that break JavaScript.
- Keeping secret keys in the code. Anything in index.html can be read by every visitor.
- Forgetting to claim the site, so it is removed after at least 7 days.
Questions
Can Gemini Canvas use my own domain?
No. Gemini does not provide a custom domain. The share link opens inside Gemini, and anyone with the link can view the content.
How do I publish a Gemini Canvas app as a real website on my own domain?
Copy the code, save it as index.html, drop it on DropTheHassle, then buy or point a domain.
Will Gemini features keep working?
Features that call Gemini inside the app stop working once the file is hosted elsewhere. Data the app stored in Gemini does not come with the file.
Why is my Gemini Canvas app a blank page once it is live?
Usually the code is a component that needs a build step, or the file is not named index.html. Ask Gemini for one self-contained index.html with all CSS and JavaScript inline, and publish that.
Do visitors need a Google account?
No. Your link opens in any browser, for anyone, without Gemini or a Google account.