Skip to content

Commit 498739d

Browse files
committed
feat: 启用Solid.js开发工具并添加启动脚本
在astro.config.mjs中启用Solid.js开发工具,并在package.json中添加启动脚本以便在开发时使用
1 parent 1356b4b commit 498739d

3 files changed

Lines changed: 220 additions & 6 deletions

File tree

blog-web/astro.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ export default defineConfig({
1616
},
1717

1818
site: "https://blog.exquisitecore.xzy",
19-
integrations: [solidJs(), sitemap()],
19+
integrations: [solidJs({ devtools: true }), sitemap()],
2020

2121
adapter: node({
2222
mode: "standalone",
2323
}),
24-
});
24+
});

blog-web/package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"dev": "astro dev",
77
"build": "astro build",
88
"preview": "astro preview",
9-
"astro": "astro"
9+
"astro": "astro",
10+
"start": "HOST=0.0.0.0 PORT=4321 node ./dist/server/entry.mjs"
1011
},
1112
"dependencies": {
1213
"@astrojs/node": "^9.2.1",
@@ -18,5 +19,8 @@
1819
"daisyui": "^5.0.35",
1920
"solid-js": "^1.9.6",
2021
"tailwindcss": "^4.1.6"
22+
},
23+
"devDependencies": {
24+
"solid-devtools": "^0.34.0"
2125
}
22-
}
26+
}

blog-web/pnpm-lock.yaml

Lines changed: 212 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)