From b5662998fa3fcaaae1fba2ca01d155f66440eb4d Mon Sep 17 00:00:00 2001 From: Sergio Ribera <56278796+SergioRibera@users.noreply.github.com> Date: Sat, 3 Aug 2024 12:09:40 -0400 Subject: [PATCH] chore: add worker build --- .github/workflows/deploy.yml | 2 +- .github/workflows/pr-preview.yml | 2 +- .gitignore | 1 + pages/[...slug].vue | 4 +--- wrangler.toml | 11 +++++++++++ 5 files changed, 15 insertions(+), 5 deletions(-) create mode 100644 wrangler.toml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 87a51ac..93c38e4 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -29,7 +29,7 @@ jobs: run: bun install - name: Build - run: bunx nuxi generate --preset=cloudflare_pages + run: bunx nuxi build --preset=cloudflare - name: Deploy uses: cloudflare/wrangler-action@v3 diff --git a/.github/workflows/pr-preview.yml b/.github/workflows/pr-preview.yml index f0083ec..4cd4d18 100644 --- a/.github/workflows/pr-preview.yml +++ b/.github/workflows/pr-preview.yml @@ -62,7 +62,7 @@ jobs: - name: Install Deps run: bun install - name: Build - run: bun run generate --preset=cloudflare_pages + run: bun run build --preset=cloudflare # Deploy steps - name: Deploy diff --git a/.gitignore b/.gitignore index 5bbb26e..8e497a9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ # Nuxt dev/build outputs +.wrangler .output .data .nuxt diff --git a/pages/[...slug].vue b/pages/[...slug].vue index fa0557f..e0c8b03 100644 --- a/pages/[...slug].vue +++ b/pages/[...slug].vue @@ -1,9 +1,7 @@