From 717bedcf05ff07284bf79760dfd56c00219cbea6 Mon Sep 17 00:00:00 2001 From: rimar1337 <132627503+rimar1337@users.noreply.github.com> Date: Mon, 3 Nov 2025 20:01:39 +0700 Subject: [PATCH] i forgot to click save on the files i think --- oauthdev.mts | 1 + vite.config.ts | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/oauthdev.mts b/oauthdev.mts index 2529126..ab0278d 100644 --- a/oauthdev.mts +++ b/oauthdev.mts @@ -38,6 +38,7 @@ export function generateMetadataPlugin({ return { name: "vite-plugin-generate-metadata", config(_config: any, { mode }: any) { + console.log('💡 vite mode =', mode) let appOrigin, resolver; if (mode === "production") { appOrigin = prod; diff --git a/vite.config.ts b/vite.config.ts index f73f049..0d4a815 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -13,6 +13,9 @@ import { generateMetadataPlugin } from "./oauthdev.mts"; const PROD_URL = "https://reddwarf.app" const DEV_URL = "https://local3768forumtest.whey.party" +const PROD_HANDLE_RESOLVER_PDS = "https://pds-nd.whey.party" +const DEV_HANDLE_RESOLVER_PDS = "https://bsky.social" + function shp(url: string): string { return url.replace(/^https?:\/\//, ''); } @@ -23,6 +26,8 @@ export default defineConfig({ generateMetadataPlugin({ prod: PROD_URL, dev: DEV_URL, + prodResolver: PROD_HANDLE_RESOLVER_PDS, + devResolver: DEV_HANDLE_RESOLVER_PDS, }), TanStackRouterVite({ autoCodeSplitting: true }), viteReact({ -- 2.51.2