Skip to content

Commit

Permalink
use nuxt/seo lts
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoRCD committed Jan 21, 2025
1 parent 9af47b6 commit 42f6d73
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 37 deletions.
39 changes: 21 additions & 18 deletions apps/lp/content.config.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
import { defineCollection, z } from '@nuxt/content'
import { asSeoCollection } from '@nuxtjs/seo/content'

export const collections = {
content: defineCollection({
type: 'page',
source: '**/*',
schema: z.object({
navigation: z.object({
title: z.string().optional(),
}),
links: z.array(z.object({
label: z.string(),
icon: z.string(),
avatar: z.object({
src: z.string(),
alt: z.string()
}).optional(),
to: z.string(),
target: z.string().optional()
}))
content: defineCollection(
asSeoCollection({
type: 'page',
source: '**/*',
schema: z.object({
navigation: z.object({
title: z.string().optional(),
}),
links: z.array(z.object({
label: z.string(),
icon: z.string(),
avatar: z.object({
src: z.string(),
alt: z.string()
}).optional(),
to: z.string(),
target: z.string().optional()
}))
})
})
}),
)
}
21 changes: 4 additions & 17 deletions apps/lp/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ export default defineNuxtConfig({

modules: [
'@nuxt/ui-pro',
'@nuxtjs/seo',
'@nuxt/content',
'nuxt-og-image',
'@nuxt/scripts',
'@nuxtjs/seo'
'@nuxt/scripts'
],

runtimeConfig: {
Expand Down Expand Up @@ -42,29 +42,16 @@ export default defineNuxtConfig({
},

nitro: {
/*prerender: {
prerender: {
crawlLinks: true,
autoSubfolderIndex: false
},*/
},
},

experimental: {
viewTransition: true,
},

sitemap: {
enabled: false
},
robots: {
enabled: false
},
schemaOrg: {
enabled: false
},
linkChecker: {
enabled: false
},

image: {
provider: 'ipx'
},
Expand Down
2 changes: 0 additions & 2 deletions apps/lp/public/robots.txt

This file was deleted.

0 comments on commit 42f6d73

Please sign in to comment.