Skip to content

Commit bfeb078

Browse files
committed
Merge branch 'master' of github.com:tiphub-io/tiphub
2 parents f26f68e + e0061e0 commit bfeb078

File tree

7 files changed

+17
-4
lines changed

7 files changed

+17
-4
lines changed

.env.example

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,13 @@ DATABASE_URL="postgresql://username:password@localhost:5432/db-name"
1010
BACKEND_URL="http://localhost:5000"
1111
FRONTEND_URL="http://localhost:8080"
1212

13+
# Fixed URL public path, required for correct Blockstack links. Only used in
14+
# production builds of the frontend.
15+
PUBLIC_PATH="http://localhost:5000"
16+
1317
# OAuth Credentials
1418
GITHUB_CLIENT_ID="123..."
1519
GITHUB_CLIENT_SECRET="abc..."
1620

17-
1821
GITLAB_CLIENT_ID="123..."
1922
GITLAB_CLIENT_SECRET="abc..."

backend/boltathon/views/templates.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,9 @@ def top_donors_svg(receiver_id):
217217

218218
return send_file(io.BytesIO(bytes(svg, 'utf-8')), mimetype='image/svg+xml')
219219

220+
@blueprint.route('/manifest.json')
221+
def manifest():
222+
return current_app.send_static_file('manifest.json')
220223

221224
@blueprint.route('/', defaults={'path': ''})
222225
@blueprint.route('/<path:path>')

frontend/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"dependencies": {
1111
"blockstack.js": "git://github.com/wbobeirne/blockstack.js#efdbc848f8bd73905e0ed6b98b48ca7e1645900f",
1212
"css-loader": "2.1.1",
13+
"dotenv": "7.0.0",
1314
"dotenv-webpack": "1.7.0",
1415
"favicons-webpack-plugin": "0.0.9",
1516
"file-loader": "3.0.1",

frontend/src/images/favicon.png

224 KB
Loading

frontend/src/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1">
66

77
<title>TipHub</title>
8-
<meta name="description" content="Send sats to your favorite open source contributors!"/>
8+
<meta name="description" content="Send sats to your favorite open source contributors"/>
99
<meta property="og:title" content="TipHub" />
10-
<meta property="og:description" content="Our cool boltathon app" />
10+
<meta property="og:description" content="Send sats to your favorite open source contributors" />
1111
<meta property="og:type" content="website" />
1212
</head>
1313
<body>

frontend/webpack.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
require('dotenv').config();
12
const path = require('path');
23
const webpack = require('webpack');
34
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
@@ -10,7 +11,7 @@ const src = path.join(__dirname, 'src');
1011
const dist = path.join(__dirname, 'dist');
1112

1213
const isDev = process.env.NODE_ENV !== 'production';
13-
const publicPath = isDev ? '/' : '/static';
14+
const publicPath = isDev ? '/' : `${process.env.PUBLIC_PATH || ''}/static`;
1415

1516
const typescriptLoader = {
1617
test: /\.tsx?$/,

frontend/yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1666,6 +1666,11 @@ [email protected]:
16661666
dependencies:
16671667
dotenv-defaults "^1.0.2"
16681668

1669+
1670+
version "7.0.0"
1671+
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-7.0.0.tgz#a2be3cd52736673206e8a85fb5210eea29628e7c"
1672+
integrity sha512-M3NhsLbV1i6HuGzBUH8vXrtxOk+tWmzWKDMbAVSUp3Zsjm7ywFeuwrUXhmhQyRK1q5B5GGy7hcXPbj3bnfZg2g==
1673+
16691674
dotenv@^6.2.0:
16701675
version "6.2.0"
16711676
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-6.2.0.tgz#941c0410535d942c8becf28d3f357dbd9d476064"

0 commit comments

Comments
 (0)