Skip to content

Commit

Permalink
Set the assetPrefix to be accessible from liambx
Browse files Browse the repository at this point in the history
  • Loading branch information
FunamaYukina committed Dec 24, 2024
1 parent 35c7a2b commit f222e43
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions frontend/apps/docs/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,18 @@ import { createMDX } from 'fumadocs-mdx/next'

const withMDX = createMDX()

function isProductionEnvironment() {
if (typeof window !== 'undefined') {
return window.location.hostname === 'liam-docs-sigma.vercel.app'
}
return false
}
/** @type {import('next').NextConfig} */
const config = {
reactStrictMode: true,
assetPrefix: isProductionEnvironment()
? 'https://liam-docs-sigma.vercel.app'
: '',
}

export default withMDX(config)

0 comments on commit f222e43

Please sign in to comment.