mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-08-07 22:21:43 +00:00
Merge branch 'main' into main
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
}
|
||||
```
|
||||
* After the pull request is merged, you will see a 404 error on `your-domain.is-a.dev`. To fix this go to your github page repo's `Settings > Github pages > Custom domain` and add `your-domain.is-a.dev` in the given field
|
||||
* If you have added the `URL` record for forced https, check the `Enforce HTTPS` checkbox too
|
||||
* Check the `Enforce HTTPS` checkbox below the custom domain input
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"description": "Eyamin Personal Website",
|
||||
"repo": "https://github.com/ahmadeyamin/ahmadeyamin.github.io",
|
||||
"owner": {
|
||||
"username": "ahmadeyamin",
|
||||
"email": "ahmadeyamin@gmail.com"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "ahmadeyamin.github.io",
|
||||
"URL": "https://ahmadeyamin.is-a.dev"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"description": "Amal's personal developer website",
|
||||
"repo": "https://github.com/amalsebs/amalsebs.github.io",
|
||||
"owner": {
|
||||
"username": "amalsebs",
|
||||
"email": "amalsebastian48@gmail.com"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "amalsebs.github.io",
|
||||
"URL": "https://amal.is-a.dev"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"description": "Bae's personal website",
|
||||
|
||||
"owner": {
|
||||
"username": "ba-e",
|
||||
"email": "bae.nyom@gmail.com"
|
||||
},
|
||||
|
||||
"record": {
|
||||
"CNAME": "bae.codes",
|
||||
"URL": "https://bae.is-a.dev"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"description": "Bree is a Dev",
|
||||
"repo": "https://github.com/breekoy/breekoy.github.io",
|
||||
"owner": {
|
||||
"username": "breekoy",
|
||||
"email": "mcwall.breekoy@gmail.com"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "breekoy.github.io",
|
||||
"URL": "https://bree.is-a.dev"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
|
||||
{
|
||||
"description": "/home/epgeroy",
|
||||
"repo": "https://github.com/epgeroy/epgeroy.github.io",
|
||||
"owner": {
|
||||
"username": "epgeroy",
|
||||
"email": "epgeroy@gmail.com"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "epgeroy.github.io",
|
||||
"URL": "https://epgeroy.is-a.dev"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"description": "George Aykara's personal developer website",
|
||||
"repo": "https://github.com/aykarageorge",
|
||||
"owner": {
|
||||
"username": "aykarageorge",
|
||||
"email": "aykarageorge@gmail.com"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "george.aykara4.com"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"description": "The domain will be used for a new version of my portfolio site, later in a future :)",
|
||||
"repo": "https://github.com/Nagellan/Portfolio-v2",
|
||||
"owner": {
|
||||
"username": "Nagellan",
|
||||
"email": "ireknazmievirek@gmail.com"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "Nagellan.github.io",
|
||||
"URL": "https://ireknazm.is-a.dev"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"description": "JaCkIsO is a Developer!",
|
||||
"owner": {
|
||||
"username": "JaCkIsO",
|
||||
"email": "jackisodev@gmail.com"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "JaCkIsO.github.io",
|
||||
"URL": "https://jackiso.is-a.dev"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"description": "Kaguwo's Personal Website",
|
||||
"owner": {
|
||||
"username": "kaguwomin",
|
||||
"email": "business@kaguwo.com"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "kaguwo.com",
|
||||
"URL": "https://kaguwo.is-a.dev"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"description": "m42e Homepage",
|
||||
"repo": "https://github.com/m42e",
|
||||
"owner": {
|
||||
"username": "m42e",
|
||||
"email": "matthias@bilger.info"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "bilger.info",
|
||||
"URL": "https://m42e.is-a.dev"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"description": "Masood Mohammad's Personal Website",
|
||||
"repo": "https://github.com/masoodbinmohammad",
|
||||
"owner": {
|
||||
"username": "masoodbinmohammad",
|
||||
"email": "masoodbinmohammad@hotmail.com"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "masoodbinmohammad.github.io",
|
||||
"URL": "https://masood.is-a.dev"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"description": "Nishant's website and blog",
|
||||
"repo": "https://github.com/nishch/nishch.github.io",
|
||||
"owner": {
|
||||
"username": "nishch",
|
||||
"email": "nishantchvedi@gmail.com"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "twistedsoft.com",
|
||||
"URL": "https://nishant.is-a.dev"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"description": "Peris's Portfolio",
|
||||
"repo": "https://github.com/perisrai/perisrai.github.io",
|
||||
"owner": {
|
||||
"username": "perisrai",
|
||||
"email": "perishrai@gmail.com"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "perisrai.github.io",
|
||||
"URL": "https://peris.is-a.dev"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"description": "cool stuff",
|
||||
"repo": "https://github.com/ticklerick/ticklerick.github.io",
|
||||
"owner": {
|
||||
"username": "ticklerick",
|
||||
"email": "pickle@anonemail.net"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "ticklerick.github.io",
|
||||
"URL": "https://picklerick.is-a.dev"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"description": "Rahul's personal developer website",
|
||||
"repo": "https://github.com/rahuldahal",
|
||||
"owner": {
|
||||
"username": "rahuldahal",
|
||||
"email": "rdaahal@gmail.com"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "rahuldahal.com.np",
|
||||
"URL": "https://rahul.is-a.dev"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"description": "Sailesh's Personal Website",
|
||||
"owner": {
|
||||
"username": "saileshbro",
|
||||
"email": "saileshbro@gmail.com"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "saileshbro.github.io"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"description": "Sandeep's personal website",
|
||||
"owner": {
|
||||
"username": "SandeepVattapparambil",
|
||||
"email": "sandeepv68@gmail.com"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "sandeepv.in",
|
||||
"URL": "https://sandeepv.is-a.dev"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"description": "Sarath's Website",
|
||||
"repo": "https://github.com/Sharkaboi/sharkaboi.github.io",
|
||||
"owner": {
|
||||
"username": "Sharkaboi",
|
||||
"email": "sarathsedu@gmail.com"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "sharkaboi.github.io",
|
||||
"URL": "https://sarath.is-a.dev"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"description": "Shane Vandegrift, a friendly fullstack developer",
|
||||
"repo": "https://github.com/vandesm14/vandesm14.github.io",
|
||||
"owner": {
|
||||
"username": "Vandesm14",
|
||||
"email": "vandesm14@gmail.com"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "vandesm14.github.io",
|
||||
"URL": "https://shane.is-a.dev"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"description": "Social media website project.",
|
||||
"repo": "https://github.com/thesct22",
|
||||
"owner": {
|
||||
"username": "thesct22",
|
||||
"email": "sharathct22@gmail.com"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "thesct22.github.io",
|
||||
"URL": "http://sharath.is-a.dev"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"description": "A-Tokyo's website",
|
||||
"repo": "https://github.com/a-tokyo/tokyo",
|
||||
"owner": {
|
||||
"username": "a-tokyo",
|
||||
"email": "ahmed.tokyo1@gmail.com"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "a-tokyo.github.io",
|
||||
"URL": "https://tokyo.is-a.dev"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const R = require('ramda');
|
||||
const { DOMAINS_PATH } = require('./utils/constants');
|
||||
|
||||
const migrate = ([file, domain]) => [
|
||||
file,
|
||||
{
|
||||
...domain,
|
||||
record: /\.github\.io$/.test(domain.record.CNAME || '')
|
||||
? R.dissoc('URL', domain.record)
|
||||
: domain.record,
|
||||
}
|
||||
];
|
||||
|
||||
const main = async () => {
|
||||
const domains = await fs.promises.readdir(DOMAINS_PATH).then(R.map(async file => [
|
||||
file,
|
||||
JSON.parse(await fs.promises.readFile(path.join(DOMAINS_PATH, file), 'utf-8')),
|
||||
])).then(ps => Promise.all(ps));
|
||||
|
||||
const newDomains = domains.map(migrate);
|
||||
|
||||
await Promise.all(newDomains.map(([file, json]) => {
|
||||
return fs.promises.writeFile(path.join(DOMAINS_PATH, file), JSON.stringify(json, null, 2));
|
||||
}));
|
||||
};
|
||||
|
||||
main();
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ If your domain points to a server you own, add \`domain-name.is-a.dev\` to your
|
||||
* Open up the **settings** tab
|
||||
* Scroll down to the **Github pages** section
|
||||
* In the **Custom domain** text input, enter the domain you registered (\`domain-name.is-a.dev\`)
|
||||
* Check the 'Enforce HTTPS' check box if you added the URL record for forced https redirection
|
||||
* Check the 'Enforce HTTPS' checkbox below the input
|
||||
* Give it some time to reflect and you should be good to go
|
||||
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ const recordToRedirection = ({ name, address }) => ({
|
||||
redirect: address,
|
||||
type: 'permanent',
|
||||
redirect_wildcard: 1,
|
||||
redirect_www: 0,
|
||||
redirect_www: 1,
|
||||
});
|
||||
const recordToZone = ({ name, type, address, ...rec }) => ({
|
||||
...rec, //line
|
||||
|
||||
Reference in New Issue
Block a user