@ -46,7 +46,7 @@ export interface ArticlePage {
|
||||
|
||||
export function getBase(): string {
|
||||
const env = import.meta.env as any
|
||||
if (env.DEV) return "http://localhost:8090"
|
||||
if (env.DEV) return "https://seo.23cm.cn"
|
||||
if (env.SSR) return (env.API_SSR || env.PUBLIC_API_BASE || "").replace(/\/$/, "")
|
||||
return (env.PUBLIC_API_BASE || "").replace(/\/$/, "")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user