[READ-ONLY] Mirror of https://github.com/flo-bit/tiny-docs. quick setup, simple, minimalistic docs for your github project flo-bit.dev/tiny-docs/
0

Configure Feed

Select the types of activity you want to include in your feed.

fix accent color

+4 -3
+4 -3
config.server.ts
··· 1 1 // config.server.ts 2 2 import { existsSync, readFileSync } from "node:fs"; 3 - import { dirname, resolve } from "node:path"; 4 - import { fileURLToPath } from "node:url"; 3 + import { resolve } from "node:path"; 5 4 import type { Config } from "./config.type"; 6 5 7 6 const defaultConfig: Config = { ··· 28 27 REPLACE_README_WITH_TITLE: "", 29 28 }; 30 29 31 - const projectRoot = dirname(fileURLToPath(import.meta.url)); 30 + // Resolve via process.cwd() — Astro runs from project root. import.meta.url 31 + // would lie when this module is bundled into dist/chunks during build. 32 + const projectRoot = process.cwd(); 32 33 const parentDir = resolve(projectRoot, ".."); 33 34 34 35 // Parent-layout (CI): tiny-docs sits at <repo>/docs-builder/ with content at <repo>/docs/.