Skip to content

Commit 04aeee1

Browse files
committed
fix: build issues
1 parent e81bc57 commit 04aeee1

File tree

7 files changed

+46
-148
lines changed

7 files changed

+46
-148
lines changed

biome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.2.4/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.2.5/schema.json",
33
"files": {
44
"includes": [
55
"**",

bun.lock

Lines changed: 15 additions & 136 deletions
Large diffs are not rendered by default.

docusaurus.config.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,16 @@ const config = {
1111
url: 'https://spicetify.app',
1212
baseUrl: '/',
1313
onBrokenLinks: 'throw',
14-
onBrokenMarkdownLinks: 'warn',
14+
future: {
15+
experimental_faster: true,
16+
v4: true,
17+
},
18+
markdown: {
19+
hooks: {
20+
onBrokenMarkdownImages: 'throw',
21+
onBrokenMarkdownLinks: 'throw',
22+
},
23+
},
1524
favicon: 'images/favicon.ico',
1625
organizationName: 'spicetify',
1726
projectName: 'spicetify-docs',
@@ -158,9 +167,6 @@ const config = {
158167
indexName: 'spicetify',
159168
},
160169
}),
161-
future: {
162-
experimental_faster: true,
163-
},
164170
};
165171

166172
module.exports = config;

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"name": "spicetify-docs",
3-
"type": "module",
43
"version": "1.0.0",
54
"private": true,
65
"scripts": {
@@ -22,19 +21,20 @@
2221
"dependencies": {
2322
"@algolia/client-search": "^5.39.0",
2423
"@docusaurus/core": "^3.9.1",
25-
"@docusaurus/faster": "^3.9.1",
2624
"@docusaurus/preset-classic": "^3.9.1",
2725
"@docusaurus/theme-common": "^3.9.1",
2826
"@docusaurus/types": "^3.9.1",
2927
"@mdx-js/react": "^3.1.1",
3028
"clsx": "^2.1.1",
3129
"prism-react-renderer": "^2.4.1",
32-
"react": "^19.2.0",
33-
"react-dom": "^19.2.0",
30+
"react": "19.2.0",
31+
"react-dom": "19.2.0",
3432
"swiper": "^12.0.2"
3533
},
3634
"devDependencies": {
3735
"@biomejs/biome": "^2.2.5",
36+
"@docusaurus/module-type-aliases": "^3.9.1",
37+
"@docusaurus/tsconfig": "^3.9.1",
3838
"@types/node": "^24.6.2",
3939
"husky": "^9.1.7",
4040
"lint-staged": "^16.2.3",

src/components/SwiperCarousel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const data = [
5454
];
5555

5656
export default () => {
57-
const slides = data.map((item, index) => (
57+
const slides = data.map((item) => (
5858
<SwiperSlide key={item.title}>
5959
<img src={item.cover} alt={item.title} />
6060
</SwiperSlide>

src/pages/index.tsx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import BrowserOnly from '@docusaurus/BrowserOnly';
2+
import Head from '@docusaurus/Head';
13
import Link from '@docusaurus/Link';
24
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
35
import Layout from '@theme/Layout';
@@ -16,7 +18,9 @@ function HomepageHeader() {
1618
</div>
1719

1820
<div className={styles.heroCarousel}>
19-
<SwiperCarousel />
21+
<BrowserOnly fallback={<div>Loading...</div>}>
22+
{() => <SwiperCarousel />}
23+
</BrowserOnly>
2024
</div>
2125

2226
<div className={styles.buttons}>
@@ -33,7 +37,13 @@ function HomepageHeader() {
3337

3438
export default function Home() {
3539
return (
36-
<Layout description="Powerful CLI tool to take control of the Spotify client.">
40+
<Layout>
41+
<Head>
42+
<meta
43+
name="description"
44+
content="Powerful CLI tool to take control of the Spotify client."
45+
/>
46+
</Head>
3747
<div className={styles.sponsor}>
3848
Find Cheap Discord Nitro & Server Boosts in{' '}
3949
<a href="https://boostmania.gg?ref=spicetify">boostmania.gg</a>

tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
22
"extends": "@docusaurus/tsconfig",
3+
"compilerOptions": {
4+
"types": ["@docusaurus/module-type-aliases", "node"]
5+
},
36
"include": ["src/"]
47
}

0 commit comments

Comments
 (0)