feat: initialization migration to Nuxt + Backend
This commit initializes both the Nuxt frontend and the Rust backend of the new version of phundrak.com
This commit is contained in:
34
frontend/content.config.ts
Normal file
34
frontend/content.config.ts
Normal file
@@ -0,0 +1,34 @@
|
||||
import { defineCollection, defineContentConfig } from '@nuxt/content';
|
||||
import { z } from 'zod';
|
||||
z;
|
||||
|
||||
const commonSchema = z.object({});
|
||||
|
||||
export default defineContentConfig({
|
||||
collections: {
|
||||
content_en: defineCollection({
|
||||
type: 'page',
|
||||
source: {
|
||||
include: 'en/**',
|
||||
prefix: '',
|
||||
},
|
||||
schema: commonSchema,
|
||||
}),
|
||||
content_fr: defineCollection({
|
||||
type: 'page',
|
||||
source: {
|
||||
include: 'fr/**',
|
||||
prefix: '',
|
||||
},
|
||||
schema: commonSchema,
|
||||
}),
|
||||
content_lfn: defineCollection({
|
||||
type: 'page',
|
||||
source: {
|
||||
include: 'lfn/**',
|
||||
prefix: '',
|
||||
},
|
||||
schema: commonSchema,
|
||||
}),
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user