Skip to content

Commit

Permalink
Merge pull request #20 from rangoack/test
Browse files Browse the repository at this point in the history
change the preset of nitro from cloudflare to cloudflare_module
  • Loading branch information
KarlChristomer authored Jan 9, 2024
2 parents 7bb0676 + 1e15b68 commit b6c84c1
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Build
run: npm run build
env:
NITRO_PRESET: cloudflare
NITRO_PRESET: cloudflare_module
NODE_OPTIONS: "--max_old_space_size=4096"

- name: Publish to Cloudflare
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Build
run: npm run build
env:
NITRO_PRESET: cloudflare
NITRO_PRESET: cloudflare_module
NODE_OPTIONS: "--max_old_space_size=4096"

- name: Publish to Cloudflare
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ dist
.DS_Store
.vscode
.vercel
.wrangler
3 changes: 0 additions & 3 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,4 @@ export default defineNuxtConfig({
path: '~/components',
global: true
}],
nitro: {
preset: 'node-server'
}
})
4 changes: 4 additions & 0 deletions wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ account_id = "55cb4036f82767a7f0f757a02a1ec8fd"
compatibility_date = "2023-07-22"
minify = true

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

[site]
bucket = ".output/public"

Expand Down

0 comments on commit b6c84c1

Please sign in to comment.