Skip to content

Commit 2fa6549

Browse files
committed
feat: try to fix build nuxt
1 parent 7a1300d commit 2fa6549

File tree

5 files changed

+7
-13
lines changed

5 files changed

+7
-13
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
run: npm install
4141

4242
- name: Build
43-
run: npm run build --preset=cloudflare_pages
43+
run: npm run build
4444

4545
- name: Deploy
4646
uses: cloudflare/wrangler-action@v3
@@ -50,7 +50,7 @@ jobs:
5050
with:
5151
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
5252
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
53-
command: pages deploy ./.output --project-name "${{ env.PROJECT_NAME }}"
53+
command: pages deploy ./dist --project-name "${{ env.PROJECT_NAME }}"
5454
# secrets: |
5555
# YOUR_SECRET
5656
# YOUR_OTHER_SECRET

bun.lockb

456 Bytes
Binary file not shown.

nuxt.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
export default defineNuxtConfig({
33
ssr: false,
44
devtools: { enabled: false },
5+
nitro: { preset: "cloudflare-pages" },
56
modules: [
67
"@nuxtjs/color-mode",
78
"@nuxt/content",
89
"@nuxtjs/tailwindcss",
10+
"nitro-cloudflare-dev",
911
],
10-
1112
content: {
1213
highlight: {
1314
theme: {

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
"build": "nuxt build",
88
"dev": "nuxt dev",
99
"generate": "nuxt generate",
10-
"preview": "nuxt preview",
11-
"postinstall": "nuxt prepare"
10+
"cf-typegen": "wrangler types"
1211
},
1312
"dependencies": {
1413
"@codemirror/language": "^6.10.4",
@@ -25,6 +24,7 @@
2524
},
2625
"devDependencies": {
2726
"wrangler": "^3.80.1",
27+
"nitro-cloudflare-dev": "^0.2.1",
2828
"@codemirror/buildhelper": "^1.0.2"
2929
}
3030
}

wrangler.toml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
11
name = "rustlings"
22
main = "./.output/server/index.mjs"
3-
compatibility_date = "2024-03-14"
3+
compatibility_date = "2024-12-18"
44
compatibility_flags = ["nodejs_compat"]
5-
6-
rules = [
7-
{ type = "ESModule", globs = ["**/*.js", "**/*.mjs"]},
8-
]
9-
10-
[site]
11-
bucket = ".output/public"

0 commit comments

Comments
 (0)