fix mobile css, ask-ai

This commit is contained in:
2025-06-19 17:27:16 +09:00
parent 8541af9293
commit f816abb84f
10 changed files with 392 additions and 59 deletions

View File

@ -1,8 +1,11 @@
import { env } from '../config/env.js'
// PDS判定からAPI設定を取得
// PDS判定からAPI設定を取得 - 実際のPDSエンドポイントに基づいて設定
export function getApiConfig(pds) {
if (pds.includes(env.pds)) {
// pdsからhttps://を除去してドメインのみ取得
const cleanPds = pds.replace(/^https?:\/\//, '')
if (cleanPds.includes(env.pds)) {
return {
pds: `https://${env.pds}`,
bsky: `https://bsky.${env.pds}`,