fix: No more frontend config

This commit is contained in:
ThatOneCalculator 2022-03-22 15:19:12 -07:00
parent e6a4341976
commit 973e7a91f6
3 changed files with 5 additions and 11 deletions

View File

@ -79,8 +79,6 @@ sudo cp ./yourdomain.tld /etc/nginx/sites-available
sudo cp ./yourdomain.tld /etc/nginx/sites-enabled
systemctl nginx restart # Or whichever process manager you use
cd frontend
cp config.example.json config.json
$EDITOR config.json # Edit as appropriate
yarn && yarn build
cd ../backend
psql -f schema.sql -U postgres zer0bin
@ -108,15 +106,15 @@ cargo build --release
| logging.on_post_paste | true or false | Log on new paste is made |
| logging.on_get_paste | true or false | Log on paste get |
</details>
</details>
# Benchmarks
###### Measured with Lighthouse and Firefox Network Performance Analysis
<details>
<summary><h3>Results</h3></summary>
### Homepage
![image](https://user-images.githubusercontent.com/44733677/159571157-64cebfa7-c10b-4597-b493-df9186c07680.png)
@ -130,7 +128,7 @@ cargo build --release
![image](https://user-images.githubusercontent.com/44733677/159571491-8afe7dcd-9e64-46fe-b23a-4a2fe2763adf.png)
</details>
# Contributing
See [CONTRIBUTING.md](./CONTRIBUTING.md)

View File

@ -1,3 +0,0 @@
{
"api_url": "https://example.tld/api"
}

View File

@ -4,8 +4,7 @@ import hljs from "highlight.js"
import JSConfetti from "js-confetti"
import Scrollbar from "smooth-scrollbar"
import config from "../config.json"
const apiUrl = config.api_url
const apiUrl = window.location.hostname + "/api"
let rawContent = ""
const jsConfetti = new JSConfetti()