-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from YouFoundAlpha/main
Added Cloudflare pages and replit
- Loading branch information
Showing
3 changed files
with
62 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |