alpha
Login
or
Join now
flo-bit.dev
/
tiny-docs
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
[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/
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
fix accent color
author
Florian
date
3 months ago
(Apr 25, 2026, 3:44 PM +0200)
commit
3c408077
3c4080777fa10f76e9d7af9ef03c0c91f89fee38
parent
9f6fef7c
9f6fef7cdbdb99a26aff93f3a4be9f5ae61506b6
+4
-3
1 changed file
Expand all
Collapse all
Unified
Split
config.server.ts
+4
-3
config.server.ts
View file
Reviewed
···
1
1
// config.server.ts
2
2
import { existsSync, readFileSync } from "node:fs";
3
3
-
import { dirname, resolve } from "node:path";
4
4
-
import { fileURLToPath } from "node:url";
3
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
31
-
const projectRoot = dirname(fileURLToPath(import.meta.url));
30
30
+
// Resolve via process.cwd() — Astro runs from project root. import.meta.url
31
31
+
// would lie when this module is bundled into dist/chunks during build.
32
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/.