Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file not shown.
Binary file modified .yarn/install-state.gz
Binary file not shown.
7 changes: 7 additions & 0 deletions content/notes/cloud-run-github-action-deployment.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
name: Cloud Run GitHub Action deployments
date: 2024-01-12T20:40:00Z
description: The modern workflow that unlocks your team's potential to ship faster.
# image: /img/blog/nuxt-3-migration.png
url: https://hackernoon.com/deploy-like-vercel-and-netlify-with-cloud-run-live-preview-and-modern-workflow
---
7 changes: 7 additions & 0 deletions content/notes/cloudflared-docker-compose-tutorial.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
name: Cloudflare Tunnel Docker
date: 2024-01-11T00:00:00Z
description: Is VPN still necessary? Why don't use Cloudflare Tunnel instead. Docker instructions (Raspberry Pi, ARM7 compatible) for use cloudflared on self-hosted servers.
# image: /img/blog/nuxt-3-migration.png
url: https://www.sakowi.cz/blog/cloudflared-docker-compose-tutorial
---
7 changes: 7 additions & 0 deletions content/notes/deploy-imgproxy-to-google-cloud-run.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
name: Deploy Imgproxy to Google Cloud-Run
date: 2024-01-12T20:55:00Z
description: Securely deliver images custom to your application in next-gen formats.
image: https://miro.medium.com/v2/resize:fit:1200/1*XEMHD7z3wIEdnT56Zt0ccg.png
url: https://medium.com/@c.nwaugha/deploy-imgproxy-to-google-cloud-run-d14a72ca4f16
---
2 changes: 1 addition & 1 deletion content/team/damien-robinson.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"username": "shadow81627"
}
],
"summary": "Damien is a Digital Consultant with 5+ years of experience. He specialises in handcrafted, bespoke websites, with an interest in open source, marketing and ecommerce. Reach out about your fresh new digital presence today.",
"summary": "Damien is a Web Developer with 5+ years of experience. He specialises in handcrafted, bespoke websites, with an interest in open source, marketing and ecommerce. Reach out about your fresh new digital presence today.",
"website": "https://daim.dev"
},
"education": [
Expand Down
4 changes: 4 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ export default defineNuxtConfig({
googleAnalytics: {
id: process.env.GOOGLE_ANALYTICS_ID || 'UA-176793964-1',
},

posthogPublicKey: 'phc_Q5iQfAViL56VWI2PKSMeTAZjiYrrMiyc6d73vXXwOdK',
posthogHost: 'https://app.posthog.com',

IMGPROXY_KEY: process.env.IMGPROXY_KEY,
IMGPROXY_SALT: process.env.IMGPROXY_SALT,

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"js-base64": "3.7.5",
"lodash-es": "4.17.21",
"mailgo": "0.12.2",
"posthog-js": "1.98.2",
"query-string": "7.1.3"
},
"devDependencies": {
Expand Down
24 changes: 24 additions & 0 deletions plugins/posthog.client.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import posthog from 'posthog-js';
export default defineNuxtPlugin(() => {
const runtimeConfig = useRuntimeConfig();
const posthogClient = posthog.init(runtimeConfig.public.posthogPublicKey, {
api_host: runtimeConfig.public.posthogHost || 'https://app.posthog.com',
loaded: (posthog) => {
if (import.meta.env.MODE === 'development') posthog.debug();
},
});

// Make sure that pageviews are captured with each route change
const router = useRouter();
router.afterEach((to) => {
posthog.capture('$pageview', {
current_url: to.fullPath,
});
});

return {
provide: {
posthog: () => posthogClient,
},
};
});
17 changes: 17 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11032,6 +11032,7 @@ __metadata:
nuxt-security: 0.13.0
nuxt-unhead: 1.4.15
playwright: 1.40.1
posthog-js: 1.98.2
prettier: 2.8.6
puppeteer: 19.7.5
query-string: 7.1.3
Expand Down Expand Up @@ -13058,6 +13059,13 @@ __metadata:
languageName: node
linkType: hard

"fflate@npm:^0.4.1":
version: 0.4.8
resolution: "fflate@npm:0.4.8"
checksum: 29d8cbe44d5e7f53e7f5a160ac7f9cc025480c7b3bfd85c5f898cbe20dfa2dad4732daa534982664bf30b35896a90af44ea33ede5d94c5ffd1b8b0c0a0a56ca2
languageName: node
linkType: hard

"fflate@npm:^0.7.3":
version: 0.7.4
resolution: "fflate@npm:0.7.4"
Expand Down Expand Up @@ -21291,6 +21299,15 @@ __metadata:
languageName: node
linkType: hard

"posthog-js@npm:1.98.2":
version: 1.98.2
resolution: "posthog-js@npm:1.98.2"
dependencies:
fflate: ^0.4.1
checksum: a5f2346cce0f100b1a4819a8f7d9c40cb392511ac3e3b679c2dd1962a66ec92bb0459cd5157e8659e7ba0f56f0238200fc51a9d3579a11507ebd0569a517b1e3
languageName: node
linkType: hard

"prebuild-install@npm:^7.1.1":
version: 7.1.1
resolution: "prebuild-install@npm:7.1.1"
Expand Down