Skip to content

Commit 44610fb

Browse files
chore: astro alpha & workers migration (#115)
1 parent 5c36a9a commit 44610fb

File tree

6 files changed

+523
-858
lines changed

6 files changed

+523
-858
lines changed

.node-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20.18.1
1+
22.18.0

astro.config.ts

Lines changed: 29 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,33 @@ import tailwindcss from '@tailwindcss/vite';
66
import mdx from '@astrojs/mdx';
77

88
export default defineConfig({
9-
build: {
10-
inlineStylesheets: 'auto',
11-
},
12-
scopedStyleStrategy: 'attribute',
13-
base: '/',
14-
devToolbar: {
15-
enabled: true,
16-
},
17-
site: 'https://astrolicious.dev/',
18-
prefetch: {
19-
prefetchAll: false,
20-
defaultStrategy: 'hover',
21-
},
22-
experimental: {
23-
clientPrerender: true,
24-
},
25-
integrations: [mdx()],
26-
output: 'static',
27-
adapter: cloudflare(),
28-
vite: {
29-
build: {
30-
minify: false,
31-
cssMinify: false,
32-
},
9+
build: {
10+
inlineStylesheets: 'auto',
11+
},
12+
scopedStyleStrategy: 'attribute',
13+
base: '/',
14+
devToolbar: {
15+
enabled: true,
16+
},
17+
site: 'https://astrolicious.dev/',
18+
prefetch: {
19+
prefetchAll: false,
20+
defaultStrategy: 'hover',
21+
},
22+
experimental: {
23+
clientPrerender: true,
24+
},
25+
integrations: [mdx()],
26+
output: 'static',
27+
adapter: cloudflare({
28+
imageService: 'cloudflare-binding',
29+
}),
30+
vite: {
31+
build: {
32+
minify: false,
33+
cssMinify: false,
34+
},
3335

34-
plugins: [tailwindcss()],
35-
},
36-
});
36+
plugins: [tailwindcss()],
37+
},
38+
});

package.json

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44
"version": "0.0.0",
55
"private": true,
66
"dependencies": {
7-
"@astrojs/check": "0.9.6",
8-
"@astrojs/cloudflare": "12.6.12",
9-
"@astrojs/mdx": "^4.3.13",
7+
"@astrojs/check": "0.9.6-alpha.0",
8+
"@astrojs/cloudflare": "13.0.0-alpha.3",
9+
"@astrojs/mdx": "5.0.0-alpha.0",
1010
"@fontsource-variable/dosis": "5.0.20",
1111
"@fontsource-variable/inter": "5.0.20",
1212
"@iconify-json/ph": "1.1.14",
1313
"@iconify-json/ri": "1.1.22",
1414
"@tailwindcss/forms": "0.5.7",
1515
"@tailwindcss/typography": "0.5.13",
1616
"@tailwindcss/vite": "^4.1.18",
17-
"astro": "5.16.6",
17+
"astro": "6.0.0-alpha.4",
1818
"sanitize-html": "2.13.0",
1919
"tailwindcss": "4.1.18",
2020
"zod": "3.25.76"
@@ -24,10 +24,12 @@
2424
"@types/node": "20.14.12",
2525
"@types/sanitize-html": "2.11.0",
2626
"typescript": "5.4.5",
27-
"wrangler": "3.62.0"
27+
"wrangler": "4.56.0"
2828
},
2929
"scripts": {
30-
"astro": "astro"
30+
"astro": "astro",
31+
"wrangler": "wrangler",
32+
"build": "astro build"
3133
},
3234
"license": "MIT",
3335
"packageManager": "pnpm@10.26.1",
@@ -37,5 +39,10 @@
3739
"email": "alexander+astrolicious@nbhr.de",
3840
"url": "https://github.com/alexanderniebuhr"
3941
}
40-
]
42+
],
43+
"pnpm": {
44+
"overrides": {
45+
"@astrojs/cloudflare>wrangler": "4.56.0"
46+
}
47+
}
4148
}

0 commit comments

Comments
 (0)