Skip to content

Commit

Permalink
chore: remove prerendering configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
johannschopplich committed Mar 1, 2025
1 parent 3558ce7 commit 3171f60
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
1 change: 0 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ jobs:
- name: Build
run: pnpm run build
env:
NITRO_PRERENDER_PAGES: true
NITRO_PRESET: cloudflare_pages
KIRBY_BASE_URL: ${{ secrets.KIRBY_BASE_URL }}
KIRBY_API_TOKEN: ${{ secrets.KIRBY_API_TOKEN }}
Expand Down
15 changes: 0 additions & 15 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import process from 'node:process'
import { consola } from 'consola'
import { prefetchQuery, siteQuery } from './queries'

const shouldPrerender = process.env.NITRO_PRERENDER_PAGES === 'true'
if (shouldPrerender) consola.info('Prerendering enabled')

export default defineNuxtConfig({
// If you project doesn't require i18n, use the `without-i18n` branch instead:
// https://github.com/johannschopplich/cacao-kit-frontend/tree/chore/without-i18n
Expand Down Expand Up @@ -58,17 +54,6 @@ export default defineNuxtConfig({
},
},

nitro: {
prerender: {
// Enable Nitro's crawler to prerender all pages (optional)
// If Kirby content changes, the frontend will have to be rebuilt
...(shouldPrerender && {
crawlLinks: shouldPrerender,
routes: ['/en'],
}),
},
},

vite: {
server: {
// This is only required for the `pnpm dev:tunnel` command
Expand Down

0 comments on commit 3171f60

Please sign in to comment.