Skip to content

Commit

Permalink
feat: try to fix build nuxt
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioRibera committed Dec 23, 2024
1 parent 7a1300d commit b7a36cf
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
run: npm install

- name: Build
run: npm run build --preset=cloudflare_pages
run: npm run build

- name: Deploy
uses: cloudflare/wrangler-action@v3
Expand Down
Binary file modified bun.lockb
Binary file not shown.
3 changes: 2 additions & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
export default defineNuxtConfig({
ssr: false,
devtools: { enabled: false },
nitro: { preset: "cloudflare-pages" },
modules: [
"@nuxtjs/color-mode",
"@nuxt/content",
"@nuxtjs/tailwindcss",
"nitro-cloudflare-dev",
],

content: {
highlight: {
theme: {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
"build": "nuxt build",
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare"
"cf-typegen": "wrangler types"
},
"dependencies": {
"@codemirror/language": "^6.10.4",
Expand All @@ -25,6 +24,7 @@
},
"devDependencies": {
"wrangler": "^3.80.1",
"nitro-cloudflare-dev": "^0.2.1",
"@codemirror/buildhelper": "^1.0.2"
}
}
7 changes: 2 additions & 5 deletions wrangler.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
name = "rustlings"
main = "./.output/server/index.mjs"
compatibility_date = "2024-03-14"
compatibility_date = "2024-12-18"
compatibility_flags = ["nodejs_compat"]

rules = [
{ type = "ESModule", globs = ["**/*.js", "**/*.mjs"]},
]
pages_build_output_dir = "./dist"

[site]
bucket = ".output/public"

0 comments on commit b7a36cf

Please sign in to comment.