Skip to content

Commit

Permalink
chore: add worker build
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioRibera committed Aug 3, 2024
1 parent e562b9c commit b566299
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Nuxt dev/build outputs
.wrangler
.output
.data
.nuxt
Expand Down
4 changes: 1 addition & 3 deletions pages/[...slug].vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<template>
<Header />
<HeroSection />
<client-only>
<Roadmap />
</client-only>
<Roadmap />
<Teleport to="body">
<div v-if="content" :class="['fixed top-0 h-screen', sidebarClass]">
<div
Expand Down
11 changes: 11 additions & 0 deletions wrangler.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name = "roadmap"
main = "./.output/server/index.mjs"
workers_dev = true
compatibility_date = "2024-03-14"

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

[site]
bucket = ".output/public"

0 comments on commit b566299

Please sign in to comment.