Skip to content

Commit

Permalink
Merge pull request #12 from YouFoundAlpha/main
Browse files Browse the repository at this point in the history
Added Cloudflare pages and replit
  • Loading branch information
wdhdev authored Dec 7, 2023
2 parents 5d9fee5 + 1981fa3 commit 23907a1
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 1 deletion.
28 changes: 28 additions & 0 deletions src/docs/cloudflare_pages/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Setting up Cloudflare pages with your is-a.dev subdomain

## Creating a pages.dev site
Follow [their guide](https://developers.cloudflare.com/pages/get-started/guide/) on how to set it up.

## Point your pages.dev site to your is-a.dev subdomain
Follow [their guide](https://developers.cloudflare.com/pages/platform/custom-domains/#add-a-custom-domain) on how to do it.
Only follow the "Add a custom domain" section and then follow the rest of the steps here.

## Creating the domain file
Create a JSON file inside `domains` directory (`domains/<subdomain>.json`) with the following content:

```json
{
"owner": {
"username": "<github-username>",
"email": "email@address",
"twitter": "<twitter-username>"
},
"record": {
"CNAME": "<sitename>.pages.dev"
}
}
```

## Configuring
- After your pull request has been merged with the main repository you should be able to visit your new is-a.dev domain and it should show you your pages.dev site
if it doesn't then you have configured your domain wrong.
4 changes: 3 additions & 1 deletion src/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ You can read more about the domains JSON file structure [here](domain-structure)
## Guides
- [GitHub Pages](github_pages)
- [Hashnode Blogs](hashnode)
- [Cloudflare Pages](cloudflare_pages)
- [Replit](replit)
- [Other Services](other)

## Vercel and Netlify
You will encounter an SSL certificate issue when using Vercel and Netlify. Neither service will work with our domains. It is recommended to use [GitHub Pages](https://pages.github.com) or [Railway](https://railway.app) instead.
You will encounter an SSL certificate issue when using Vercel and Netlify. Neither service will work with our domains. It is recommended to use [GitHub Pages](https://pages.github.com), [Railway](https://railway.app) or [Cloudflare Pages](https://pages.dev) instead.
31 changes: 31 additions & 0 deletions src/docs/replit/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Setting up Replit with your is-a.dev subdomain

## Creating a project
Follow [their guide](https://docs.replit.com/programming-ide/introduction-to-the-workspace#how-to-create-a-repl) on how to set it up.

## Point your Replit to your is-a.dev subdomain
Follow [their guide](https://docs.replit.com/hosting/custom-domains#connecting-your-domain-to-your-repl) on how to do it.

Only follow the "Connecting your domain to your repl" section and then follow the rest of the steps here.

## Creating the domain file
Create a JSON file inside `domains` directory (`domains/<subdomain>.json`) with the following content:

**Please do not add any TXT records even if Replit tells you to do so.**

```json
{
"owner": {
"username": "<github-username>",
"email": "email@address",
"twitter": "<twitter-username>"
},
"record": {
"CNAME": "<sitename>.id.repl.co"
}
}
```

## Configuring
- After your pull request has been merged with the main repository you should be able to visit your new is-a.dev domain and it should show you your replit site
if it doesn't then you have configured your domain wrong.

0 comments on commit 23907a1

Please sign in to comment.