Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wrnrlr committed Oct 30, 2024
1 parent d2b0eee commit 7794473
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions www/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function typedocPlugin() {
async writeBundle() {
const name = path.join(__dirname, 'typedoc.json')
const config = JSON.parse(await Deno.readTextFile(name))
config.hostedBaseUrl = 'https://wrnrlr.github.io/prelude'
config.hostedBaseUrl = '/prelude'
config.useHostedBaseUrlForAbsoluteLinks = true
config.out = './www/dist/docs'
config.entryPoints = ['./src/mod.ts']
Expand Down Expand Up @@ -48,15 +48,13 @@ export default defineConfig(({ command, mode }) => {
}
}

console.log('BASE', mode==='production' ? 'https://wrnrlr.github.io/prelude/' : undefined)

return {
root,
define,
build,
optimizeDeps,
assetsInclude,
base: 'prelude',
base: '/prelude',
plugins: [
typedocPlugin()
]
Expand Down

0 comments on commit 7794473

Please sign in to comment.