{"id":14007268,"url":"https://github.com/hosso/notion-custom-domain","last_synced_at":"2025-07-24T01:31:19.876Z","repository":{"id":40624976,"uuid":"250890278","full_name":"hosso/notion-custom-domain","owner":"hosso","description":"Custom domains for your Notion pages","archived":false,"fork":false,"pushed_at":"2024-03-20T13:04:53.000Z","size":281,"stargazers_count":83,"open_issues_count":6,"forks_count":51,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-08-11T10:04:12.942Z","etag":null,"topics":["notion","now","proxy","serverless","vercel","zeit"],"latest_commit_sha":null,"homepage":"https://notion-custom-domain.hosso.co","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hosso.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2020-03-28T20:46:41.000Z","updated_at":"2024-08-05T19:43:40.000Z","dependencies_parsed_at":"2024-01-28T10:22:44.068Z","dependency_job_id":"70b11e84-2520-4d6d-a30d-5da38540177d","html_url":"https://github.com/hosso/notion-custom-domain","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hosso%2Fnotion-custom-domain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hosso%2Fnotion-custom-domain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hosso%2Fnotion-custom-domain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hosso%2Fnotion-custom-domain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hosso","download_url":"https://codeload.github.com/hosso/notion-custom-domain/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227384215,"owners_count":17772338,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["notion","now","proxy","serverless","vercel","zeit"],"created_at":"2024-08-10T10:01:57.283Z","updated_at":"2024-11-30T17:32:30.399Z","avatar_url":"https://github.com/hosso.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# Notion Custom Domain\n\nCustom domains for your Notion pages. You can publish your page to your own domain instead of `notion.site`.\n\n[![Notion Custom Domain](https://user-images.githubusercontent.com/19500280/93695277-d99aa400-fb4f-11ea-8e82-5c431110ce19.png)](https://notion-custom-domain.hosso.co)\n\n## Getting Started\n\nInstall dependencies:\n\n```\nyarn\n```\n\nThen deploy to Vercel with specifiying your public Notion page:\n\n```\nPAGE_URL=https://\u003cyour-domain\u003e.notion.site/\u003cYour-Page-ID\u003e \\\nyarn deploy:prod\n```\n\nFor example:\n\n```\nPAGE_URL=https://notion.notion.site/Notion-Official-83715d7703ee4b8699b5e659a4712dd8 \\\nyarn deploy:prod\n```\n\nFinally, set up a custom domain for the deployment on the Vercel Dashboard. See [Custom Domains – Vercel Docs](https://vercel.com/docs/concepts/projects/custom-domains)\n\n![](https://user-images.githubusercontent.com/19500280/169642461-c31df143-a8a5-4d37-8494-e5b04b01c7b1.png)\n\n## Development\n\n### Run locally\n\n```\nPAGE_URL=https://\u003cyour-domain\u003e.notion.site/\u003cYour-Page-ID\u003e \\\nyarn dev\n```\n\nThen open http://localhost:3000.\n\n### Debug with Node Inspector\n\n```\nPAGE_URL=https://\u003cyour-domain\u003e.notion.site/\u003cYour-Page-ID\u003e \\\nyarn debug\n```\n\nThen open http://localhost:3000.\n\n## Google Analytics Support\n\nDeploying with `GA_MEASUREMENT_ID` environment variable injects the tracking code into your public Notion page:\n\n```\nPAGE_URL=https://\u003cyour-domain\u003e.notion.site/\u003cYour-Page-ID\u003e \\\nGA_MEASUREMENT_ID=G-XXXXXXXXXX \\\nyarn deploy:prod\n```\n\n## Using Environment Variables on the Vercel Dashboard\n\nYou can use environment variables on the Vercel Dashboard. In this case, you can simply run\n`vercel env pull`, `vercel dev`, `vercel deploy` or `vercel deploy --prod` without setting environment variables.\n![](https://github.com/hosso/notion-custom-domain/assets/19500280/e234a2eb-8ba7-4be0-a1dd-fa58ce0327ab)\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhosso%2Fnotion-custom-domain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhosso%2Fnotion-custom-domain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhosso%2Fnotion-custom-domain/lists"}