Skip to content

Commit 4c44ea2

Browse files
chore: migrate from Cloudflare Pages to Workers
1 parent 8f4b898 commit 4c44ea2

File tree

6 files changed

+1424
-1916
lines changed

6 files changed

+1424
-1916
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ jobs:
2828
- name: Build
2929
run: pnpm run build
3030
env:
31-
NITRO_PRESET: cloudflare_pages
31+
NITRO_PRESET: cloudflare_module
3232
KIRBY_BASE_URL: ${{ secrets.KIRBY_BASE_URL }}
3333
KIRBY_API_TOKEN: ${{ secrets.KIRBY_API_TOKEN }}
3434

3535
- name: Deploy to Cloudflare
36-
run: npx wrangler pages deploy
36+
run: npx wrangler deploy
3737
env:
3838
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,11 @@ This kit is written in semantic HTML and styled by the class-less CSS framework
9292

9393
Just like any other Nuxt application, the Cacao Kit can be deployed on a Node.js server, pre-rendered for static hosting, or deployed to serverless or edge (CDN) environments. Follow the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) to learn more.
9494

95-
This repository includes a [`netlify.toml`](./netlify.toml) file to deploy the application to [Netlify](https://www.netlify.com). The recommended deployment provider is [Cloudflare Pages](https://pages.cloudflare.com), which doesn't require any additional configuration.
95+
This repository includes a [`netlify.toml`](./netlify.toml) file to deploy the application to [Netlify](https://www.netlify.com). The recommended deployment provider is [Cloudflare Workers](https://workers.cloudflare.com), which doesn't require any additional configuration.
9696

9797
#### Deployment Previews
9898

99-
- Cloudflare Pages 👉 [cacao-kit.byjohann.dev](https://cacao-kit.byjohann.dev) (recommended)
99+
- Cloudflare 👉 [cacao-kit.byjohann.dev](https://cacao-kit.byjohann.dev) (recommended)
100100

101101
## What's Kirby?
102102

nuxt.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default defineNuxtConfig({
66
// https://github.com/johannschopplich/cacao-kit-frontend/tree/chore/without-i18n
77
modules: ['@nuxtjs/i18n', '@unocss/nuxt', '@vueuse/nuxt', 'nuxt-kql'],
88

9-
compatibilityDate: '2025-01-01',
9+
compatibilityDate: '2025-06-01',
1010

1111
future: {
1212
compatibilityVersion: 4,

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"type": "module",
33
"private": true,
4-
"packageManager": "pnpm@10.11.0",
4+
"packageManager": "pnpm@10.12.1",
55
"scripts": {
66
"dev": "nuxi dev",
77
"dev:tunnel": "nuxi dev --tunnel",
@@ -16,16 +16,16 @@
1616
"prepare": "nuxi prepare"
1717
},
1818
"devDependencies": {
19-
"@antfu/eslint-config": "^4.13.2",
20-
"@nuxtjs/i18n": "^9.5.4",
19+
"@antfu/eslint-config": "^4.14.1",
20+
"@nuxtjs/i18n": "^9.5.5",
2121
"@sindresorhus/slugify": "^2.2.1",
22-
"@types/node": "^22.15.21",
23-
"@unocss/eslint-config": "^66.1.2",
24-
"@unocss/nuxt": "^66.1.2",
22+
"@types/node": "^22.15.32",
23+
"@unocss/eslint-config": "^66.2.1",
24+
"@unocss/nuxt": "^66.2.1",
2525
"@vueuse/nuxt": "^13.3.0",
26-
"eslint": "^9.27.0",
27-
"nuxt": "^3.17.4",
28-
"nuxt-kql": "^1.5.4",
26+
"eslint": "^9.29.0",
27+
"nuxt": "^3.17.5",
28+
"nuxt-kql": "^1.5.6",
2929
"prettier": "^3.5.3",
3030
"sitemap": "^8.0.0",
3131
"typescript": "^5.8.3",

0 commit comments

Comments
 (0)