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({