Skip to content

Commit bc604b4

Browse files
committed
feat: add netlify adapter
1 parent dd65781 commit bc604b4

File tree

4 files changed

+4192
-117
lines changed

4 files changed

+4192
-117
lines changed

astro.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import mdx from "@astrojs/mdx";
2+
import netlify from "@astrojs/netlify";
23
import sitemap from "@astrojs/sitemap";
34
import {
45
transformerNotationDiff,
@@ -44,4 +45,5 @@ export default defineConfig({
4445
tailwindcss(),
4546
],
4647
},
48+
adapter: netlify(),
4749
});

netlify.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build]
2+
command = "npm run build"
3+
publish = "dist"

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
},
1212
"dependencies": {
1313
"@astrojs/mdx": "^4.3.9",
14+
"@astrojs/netlify": "^6.6.0",
1415
"@astrojs/rss": "^4.0.13",
1516
"@astrojs/sitemap": "^3.6.0",
1617
"@lucide/astro": "^0.552.0",

0 commit comments

Comments
 (0)