mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-08-05 18:24:33 +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": "The awesome portfolio site for Adrian Grimm",
|
||||
"repo": "https://github.com/usmcamgrimm/usmcamgrimm.github.io",
|
||||
"owner": {
|
||||
"username": "usmcamgrimm",
|
||||
"email": "usmcamgrimm@gmail.com"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "usmcamgrimm.github.io",
|
||||
"URL": "https://adrian.is-a.dev"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"description": "Akas Portfolio",
|
||||
"repo":"https://github.com/akasrai/akasrai.github.io",
|
||||
"owner": {
|
||||
"username": "akasrai",
|
||||
"email": "akasky70@gmail.com"
|
||||
},
|
||||
"record": {
|
||||
"CNAME":"akasrai.github.io",
|
||||
"URL": "https://akas.is-a.dev"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"description": "Alexander's personal website",
|
||||
"repo": "https://github.com/amatzen",
|
||||
"owner": {
|
||||
"username": "amatzen",
|
||||
"email": "alexander@alexander.dk"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "alexander.dk",
|
||||
"URL": "https://alexander.is-a.dev"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"description": "Allan's personal website",
|
||||
"repo": "https://github.com/abarriel",
|
||||
"owner": {
|
||||
"username": "abarriel",
|
||||
"email": "abarriel@student.42.fr"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "abarriel.github.io",
|
||||
"URL": "https://allan.is-a.dev"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"description": "👋 Hello there! I'm Asad, nice to meet you. Building things that bring delight to users is what I enjoy, always learning new stuff everyday.",
|
||||
"repo": "https://github.com/asadkhan777",
|
||||
"owner": {
|
||||
"username": "asadkhan777",
|
||||
"email": "asadkhan1776@gmail.com"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "asadkhan777.github.io",
|
||||
"URL": "https://asad-khan.is-a.dev"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"description": "Portfolio website",
|
||||
"repo": "https://github.com/robertdrakedennis/portfolio",
|
||||
"owner": {
|
||||
"username": "robertdrakedennis",
|
||||
"email": "robertdennispersonal@gmail.com"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "robertdennis.netlify.app",
|
||||
"URL": "https://atlas.is-a.dev"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"description": "Augustine's personal developer website",
|
||||
"repo": "https://github.com/augustineaykara",
|
||||
"owner": {
|
||||
"username": "augustineaykara",
|
||||
"email": "augustineaykara@gmail.com"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "augustine.aykara4.com",
|
||||
"URL": "https://augustine.is-a.dev"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "Harry-Ross",
|
||||
"email": "hazross@hotmail.com"
|
||||
},
|
||||
"description": "Personal site/blog",
|
||||
"repository": "https://github.com/Harry-Ross/harry-ross.github.io.git",
|
||||
"record": {
|
||||
"CNAME": "harry-ross.github.io"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"description": "Haseena's website",
|
||||
"repo": "https://github.com/haseena-hassan/is-a-dev",
|
||||
"owner": {
|
||||
"username": "haseena-hassan",
|
||||
"email": "haseena2199@gmail.com"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "haseena-hassan.github.io",
|
||||
"URL": "https://haseena.is-a.dev"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"description": "YAY, new place for my Portfolio",
|
||||
"repo": "https://github.com/parshnt",
|
||||
"owner": {
|
||||
"username": "parshnt",
|
||||
"email": "hi.parshant@gmail.com"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "parshnt.github.io",
|
||||
"URL": "https://parshnt.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": "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,12 @@
|
||||
{
|
||||
"description": "Yuksel Beyti's personal developer website",
|
||||
"repo": "https://github.com/yuks/yuks.github.io",
|
||||
"owner": {
|
||||
"username": "yuks",
|
||||
"email": "admin@yukselbeyti.com"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "yuks.github.io",
|
||||
"URL": "https://yuksel.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