From 6c3b15d9b705248b59a0dcb64057af7eafc7f24b Mon Sep 17 00:00:00 2001 From: CultPodcastsBot <142722442+cultpodcasts@users.noreply.github.com> Date: Thu, 18 Jul 2024 17:35:33 +0100 Subject: [PATCH] Local dev updates (#31) --- package.json | 2 +- src/index.ts | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index f753565..53e2e37 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "private": true, "scripts": { "deploy": "wrangler deploy", - "start": "wrangler dev" + "start": "wrangler dev --local-protocol https" }, "devDependencies": { "@cloudflare/workers-types": "^4.20240423.0", diff --git a/src/index.ts b/src/index.ts index 09f5cae..0aa9af2 100644 --- a/src/index.ts +++ b/src/index.ts @@ -26,10 +26,12 @@ const allowedOrigins: Array = [ "https://cultpodcasts.com", "http://localhost:4200", "https://local.cultpodcasts.com:4200", - "https://localhost:4200" + "https://local.cultpodcasts.com:8788", + "https://localhost:4200", + "https://localhost:8790" ]; -const stagingHostSuffix= ".website-83e.pages.dev"; +const stagingHostSuffix = ".website-83e.pages.dev"; function getOrigin(origin: string | null | undefined) { if (origin == null || (allowedOrigins.indexOf(origin.toLowerCase()) == -1 && !origin.endsWith(stagingHostSuffix))) {