Skip to content

Commit

Permalink
fix: og image and favicon + gitops
Browse files Browse the repository at this point in the history
  • Loading branch information
leomotors committed Feb 4, 2024
1 parent 0ee1201 commit c1c0f80
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ Dockerfile

# Ignored Folder (For quality of local build)
**/dist
**/build
**/out
**/node_modules
**/.turbo
**/.svelte-kit
**/.next
**/.env
test_docker
10 changes: 10 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,13 @@ jobs:
platforms: linux/amd64,linux/arm64
cache-from: type=gha
cache-to: type=gha,mode=max

honami-gitops:
runs-on: ubuntu-latest
needs: image

steps:
- name: Send Webhook
run: |
curl -X POST ${{ secrets.WEBHOOK_ENDPOINT }}/webhook/renovate \
-H "Authorization: ${{ secrets.WEBHOOK_PASSWORD }}"
2 changes: 0 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,4 @@
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
// Fix ESLint & Prettier Conflict
"editor.formatOnSave": false
}
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

Previous changelog before 4.0.605 may not be noted here.

## [6.0.900] - 2023-02-04
## [6.1.900] - 2023-02-04

- chore: bump deps
- refactor: no longer require api key for golden frame (See new Golden Frame Web)
- fix: bad activity set payload (causing empty activities)
- fix: og image and favicon not working

## [6.0.889] - 2023-12-28

Expand Down
6 changes: 5 additions & 1 deletion apps/web/src/routes/api/image/og/+server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ export const GET = (async ({ setHeaders, fetch }) => {
const imageUrl = `/api/image?url=${encodeURIComponent(
waifu.bannerUrl,
)}&w=1200&q=100`;
const res = await fetch(imageUrl);
const res = await fetch(imageUrl, {
headers: {
Referer: "https://waifu.leomotors.me",
},
});

if (!res.body) {
error(500, "Failed to fetch image");
Expand Down
6 changes: 5 additions & 1 deletion apps/web/src/routes/favicon.ico/+server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ export const GET = (async ({ setHeaders, fetch }) => {
const imageUrl = `/api/image?url=${encodeURIComponent(
waifu.imageUrl,
)}&w=64&q=100`;
const res = await fetch(imageUrl);
const res = await fetch(imageUrl, {
headers: {
Referer: "https://waifu.leomotors.me",
},
});

if (!res.body) {
error(500, "Failed to fetch image");
Expand Down
4 changes: 2 additions & 2 deletions apps/web/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"resolveJsonModule": true,
"skipLibCheck": true,
"sourceMap": true,
"strict": true,
},
"strict": true
}
// Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias
//
// If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"packageManager": "[email protected]",
"scripts": {
"clean": "rm -rf node_modules {apps,packages}/*/{.turbo,build,dist,node_modules,.svelte-kit}",
"build": "FORCE_COLOR=2 turbo run build",
"build": "dotenv -v FORCE_COLOR=2 turbo run build",
"dev": "dotenv -v FORCE_COLOR=2 turbo run dev",
"lint": "FORCE_COLOR=2 turbo run lint",
"format": "FORCE_COLOR=2 turbo run format",
Expand Down
2 changes: 1 addition & 1 deletion packages/constants/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// * Data such as App Version and other "constants"
// * will be in this package

export const AppVersion = "6.0.900";
export const AppVersion = "6.1.900";

export const YoutubeURLPrefix = "https://www.youtube.com/watch?v=";

Expand Down

0 comments on commit c1c0f80

Please sign in to comment.