Skip to content

Commit

Permalink
Merge pull request #5 from vuejs-jp/feat/nuxt-content
Browse files Browse the repository at this point in the history
Feat/Nuxt Content
  • Loading branch information
jiyuujin authored Feb 13, 2024
2 parents c49f7df + 9049e12 commit 7057ed4
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
6 changes: 6 additions & 0 deletions apps/web/app/content/sample.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<!-- Nuxt Contentを正常に導入できたことを確認するためのファイル
- pages/index.vue で利用している
TODO: 他contentを作成する際に削除する
-->
# Hello Nuxt Content (sample.md)
1 change: 1 addition & 0 deletions apps/web/app/pages/index.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<template>
<ContentDoc path="sample" />
<I18nSample />
<NuxtWelcome />
</template>
4 changes: 2 additions & 2 deletions apps/web/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
srcDir: 'app/',
modules: ['@vuejs-jp/vuefes-ui', '@nuxtjs/i18n'],
modules: ['@vuejs-jp/vuefes-ui', '@nuxtjs/i18n', '@nuxt/content'],
i18n: {
vueI18n: './i18n.config.ts',
},
devtools: { enabled: true },
})
});
Binary file modified bun.lockb
Binary file not shown.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,8 @@
"workspaces": [
"apps/*",
"packages/*"
]
],
"dependencies": {
"@nuxt/content": "^2.12.0"
}
}

0 comments on commit 7057ed4

Please sign in to comment.