Skip to content

Commit

Permalink
Fix Astro build (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayc0 authored Aug 18, 2024
1 parent bcfa8da commit 1244ed1
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
8 changes: 8 additions & 0 deletions astro.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ import { defineConfig } from 'astro/config'
// https://astro.build/config
export default defineConfig({
srcDir: './astro',
vite: {
build: {
rollupOptions: {
// For some reason, the build crashes without this
external: ['sharp'],
},
},
},
integrations: [
starlight({
// https://starlight.astro.build/reference/configuration
Expand Down
11 changes: 10 additions & 1 deletion biome.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,16 @@
"lineWidth": 100
},
"files": {
"ignore": ["node_modules", "public", ".next", ".contentlayer", "lib/wasm", ".vercel"]
"ignore": [
"node_modules",
"public",
".next",
".contentlayer",
"lib/wasm",
".vercel",
".astro",
"dist"
]
},
"javascript": {
"formatter": {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"start": "next start",
"dev-astro": "astro dev",
"build-astro": "astro build",
"lint": "biome check . && biome format .",
"lint-fix": "biome check . --write --unsafe && biome format . --write"
"lint": "biome check .",
"lint-fix": "biome check . --write --unsafe"
},
"dependencies": {
"@astrojs/starlight": "^0.26.1",
Expand Down

0 comments on commit 1244ed1

Please sign in to comment.