From 2131d5fec97f6163678fdec40dd2d6e9f7a5e58c Mon Sep 17 00:00:00 2001 From: "Alex Pooley (@zuedev)" Date: Thu, 30 Oct 2025 23:40:37 +0000 Subject: restructure repo into a monorepo --- projects/www/.gitignore | 2 ++ projects/www/README | 4 +++ projects/www/public/_headers | 2 ++ projects/www/public/_redirects | 14 +++++++++ projects/www/public/index.html | 67 ++++++++++++++++++++++++++++++++++++++++++ projects/www/server/index.js | 25 ++++++++++++++++ projects/www/wrangler.jsonc | 19 ++++++++++++ 7 files changed, 133 insertions(+) create mode 100644 projects/www/.gitignore create mode 100644 projects/www/README create mode 100644 projects/www/public/_headers create mode 100644 projects/www/public/_redirects create mode 100644 projects/www/public/index.html create mode 100644 projects/www/server/index.js create mode 100644 projects/www/wrangler.jsonc (limited to 'projects/www') diff --git a/projects/www/.gitignore b/projects/www/.gitignore new file mode 100644 index 0000000..3e4f32c --- /dev/null +++ b/projects/www/.gitignore @@ -0,0 +1,2 @@ +/.wrangler/ +/node_modules/ \ No newline at end of file diff --git a/projects/www/README b/projects/www/README new file mode 100644 index 0000000..ea6f358 --- /dev/null +++ b/projects/www/README @@ -0,0 +1,4 @@ +My ever-changing personal website. + +Find it at: https://zue.dev +Or, if I'm dead, it will (hopefully) be at: https://zuedev.github.io/zue.dev/ \ No newline at end of file diff --git a/projects/www/public/_headers b/projects/www/public/_headers new file mode 100644 index 0000000..69fb1e4 --- /dev/null +++ b/projects/www/public/_headers @@ -0,0 +1,2 @@ +/* + who-was-here: zuedev-was-here \ No newline at end of file diff --git a/projects/www/public/_redirects b/projects/www/public/_redirects new file mode 100644 index 0000000..5890edd --- /dev/null +++ b/projects/www/public/_redirects @@ -0,0 +1,14 @@ +/github https://github.com/zuedev +/gitlab https://gitlab.com/zuedev +/discord https://discord.gg/N34EeYtFCs +/gumroad https://zuedev.gumroad.com/ +/linkedin https://linkedin.com/in/zuedev +/stripe https://billing.stripe.com/p/login/6oE8Ag4EK2N82OI000 +/monzo https://monzo.me/alexanderpooley5 +/steam https://steamcommunity.com/id/zuedev +/aws https://zuedev.awsapps.com/start + +/cv /resume +/cv.pdf /resume +/resume.pdf /resume +/resume https://drive.google.com/file/d/1S49c4nQEpY5IeQNkTcLlnabz664RlnAj/view diff --git a/projects/www/public/index.html b/projects/www/public/index.html new file mode 100644 index 0000000..2d92f0b --- /dev/null +++ b/projects/www/public/index.html @@ -0,0 +1,67 @@ + + + + + + + zuedev's space + + + + + + +
+
+

+ I'm working on updating this website to be a hub for my projects and + services. +

+

In the meantime, here's some links:

+ +
+
+ + + diff --git a/projects/www/server/index.js b/projects/www/server/index.js new file mode 100644 index 0000000..10151ea --- /dev/null +++ b/projects/www/server/index.js @@ -0,0 +1,25 @@ +export default { + async fetch(request, env) { + const url = new URL(request.url); + + if (url.pathname.startsWith("/api")) { + const apiPath = url.pathname.split("/").filter(Boolean); + + if (!apiPath[1]) apiPath[1] = "index"; + + switch (apiPath[1]) { + case "index": + return new Response(JSON.stringify({ message: "Hello, World! :3" }), { + headers: { "Content-Type": "application/json" }, + }); + default: + return new Response(JSON.stringify({ message: "Not Found" }), { + status: 404, + headers: { "Content-Type": "application/json" }, + }); + } + } + + return env.ASSETS.fetch(request); + }, +}; \ No newline at end of file diff --git a/projects/www/wrangler.jsonc b/projects/www/wrangler.jsonc new file mode 100644 index 0000000..af0687f --- /dev/null +++ b/projects/www/wrangler.jsonc @@ -0,0 +1,19 @@ +{ + "name": "zue-dev", + "compatibility_date": "2025-03-01", + "main" : "./server/index.js", + "assets": { + "directory": "./public/", + "not_found_handling": "single-page-application", + "binding": "ASSETS" + }, + "observability": { + "enabled": true + }, + "routes": [ + { + "pattern": "zue.dev", + "custom_domain": true + } + ] +} -- cgit v1.2.3