Skip to content
This repository has been archived by the owner on Feb 5, 2023. It is now read-only.

Commit

Permalink
fix: cheers.bio
Browse files Browse the repository at this point in the history
  • Loading branch information
Candinya committed Jan 30, 2022
1 parent f624c1c commit 5be5ee6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 21 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
</p>
<h1 align="center">Cheers Bio</h1>

Front part of [Cheers Bio](https://rss3.bio/)
Front part of [Cheers Bio](https://cheers.bio/)

The `main` branch is automatically deployed to https://rss3.bio
The `cheers` branch is automatically deployed to https://cheers.bio

## Contribution

Expand Down
4 changes: 2 additions & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ const injectMetadata = async (ctx) => {
// embed default data (so page don't need to request again)
await ctx.render('index', {
user: JSON.stringify(persona),
title: (persona?.profile?.name ? persona?.profile?.name + "'s " : '') + 'RSS3.Bio',
title: (persona?.profile?.name ? persona?.profile?.name + "'s " : '') + 'Cheers.Bio',
avatar: persona?.profile?.avatar?.[0] || defaultAvatar,
bio: persona?.profile?.bio?.replace(/\n/g, ' ') || 'RSS3.Bio',
bio: persona?.profile?.bio?.replace(/\n/g, ' ') || 'Cheers.Bio',
url: ctx.request.href.replace('http://', 'https://'),
});
};
Expand Down
11 changes: 0 additions & 11 deletions src/common/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,6 @@ interface ProductsDefine {
subDomainMode: boolean;
}

const productsList: {
[key: string]: ProductsDefine;
} = {
RSS3Bio: {
schema: 'https://',
baseDomain: 'rss3.bio',
subDomainMode: true,
},
};

const config = {
hubEndpoint: 'https://prenode.rss3.dev',
undefinedImageAlt: 'https://infura-ipfs.io/ipfs/QmcK8FSTtLQVydLEDKLv1hEacLxZgi7j2i4mkQQMyKxv6k',
Expand All @@ -25,7 +15,6 @@ const config = {
ui: {
md: 768, // px
},
productsList,
subDomain: {
preferSubDomainMode: true,
},
Expand Down
7 changes: 1 addition & 6 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,7 @@ module.exports = (env, argv) => ({
output: {
path: path.resolve(__dirname, 'dist'),
filename: '[name].[contenthash:8].js',
publicPath:
argv.mode === 'production'
? process.env.PAGE_ENV === 'development'
? 'https://rss3.co/'
: 'https://rss3.bio/'
: '/',
publicPath: '/',
clean: true,
},
resolve: {
Expand Down

0 comments on commit 5be5ee6

Please sign in to comment.