mirror of
https://github.com/pockethost/pockethost.git
synced 2025-05-28 09:46:46 +00:00
fix: blog path calculation
This commit is contained in:
parent
6a639a3021
commit
b33750564d
@ -29,7 +29,7 @@ export const mkUrl = (subdomain: string, path = '') =>
|
||||
`${PUBLIC_HTTP_PROTOCOL}://${mkFqDomain(subdomain)}${path}`
|
||||
export const mkAppUrl = (path = '') => mkUrl(PUBLIC_APP_SUBDOMAIN, path)
|
||||
export const mkBlogUrl = (path = '') => mkUrl(PUBLIC_BLOG_SUBDOMAIN, path)
|
||||
export const mkDocUrl = (path = '') => mkBlogUrl(join('docs', path))
|
||||
export const mkDocUrl = (path = '') => mkBlogUrl(join('/docs', path))
|
||||
export const mkEdgeSubdomain = (subdomain: string) =>
|
||||
mkFqDomain(`${subdomain}.${PUBLIC_EDGE_APEX_DOMAIN}`)
|
||||
export const mkEdgeUrl = (subdomain: string, path = '') =>
|
||||
|
@ -424,7 +424,7 @@ export const instanceService = mkSingleton(
|
||||
if (instance.maintenance) {
|
||||
throw new Error(
|
||||
`This instance is in Maintenance Mode. See ${mkDocUrl(
|
||||
`/usage/maintenance`,
|
||||
`usage/maintenance`,
|
||||
)} for more information.`,
|
||||
)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user