Skip to content

Commit 0ffc5f1

Browse files
fix for nuxt content error
1 parent 877bc42 commit 0ffc5f1

4 files changed

Lines changed: 16 additions & 2 deletions

File tree

.github/workflows/firebase-hosting-merge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
with:
1616
version: latest
1717
- uses: actions/checkout@v4
18-
- run: pnpm i && pnpm run generate
18+
- run: pnpm i && pnpm approve-builds && pnpm run generate
1919
- uses: FirebaseExtended/action-hosting-deploy@v0
2020
with:
2121
repoToken: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/firebase-hosting-pull-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
with:
1818
version: latest
1919
- uses: actions/checkout@v4
20-
- run: pnpm i && pnpm run generate
20+
- run: pnpm i && pnpm approve-builds && pnpm run generate
2121
- uses: FirebaseExtended/action-hosting-deploy@v0
2222
with:
2323
repoToken: ${{ secrets.GITHUB_TOKEN }}

app/content/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# My First Page
2+
3+
Here is some content.
4+
This is a simple page to demonstrate the structure of a Markdown file in a web application.

content.config.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { defineContentConfig, defineCollection } from '@nuxt/content'
2+
3+
export default defineContentConfig({
4+
collections: {
5+
content: defineCollection({
6+
type: 'page',
7+
source: '**/*.md'
8+
})
9+
}
10+
})

0 commit comments

Comments
 (0)