Skip to content

Commit 8aa2529

Browse files
committed
Fix generated llms.txt output
1 parent 4ea6b55 commit 8aa2529

3 files changed

Lines changed: 9 additions & 1 deletion

File tree

‎_headers‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/docs/*.txt
2+
Content-Type: text/plain; charset=utf-8

‎astro.config.mjs‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,12 @@ export default defineConfig({
8989
"run Endform in GitHub Actions or another CI system and test Vercel preview deployments",
9090
},
9191
],
92+
minify: {
93+
whitespace: false,
94+
},
95+
customSelectors: {
96+
all: [".sl-anchor-link", ".selector-panel"],
97+
},
9298
promote: ["index", "guides/getting-started"],
9399
exclude: ["guides/getting-started/*/*/*"],
94100
}),

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"scripts": {
1010
"dev": "astro dev",
1111
"start": "astro dev",
12-
"build": "astro build && node strip-html-extensions.ts",
12+
"build": "astro build && cp _headers dist/_headers && node strip-html-extensions.ts",
1313
"preview": "wrangler dev",
1414
"astro": "astro",
1515
"deploy": "wrangler deploy"

0 commit comments

Comments
 (0)