add robots.txt

This commit is contained in:
Ruidy 2024-12-14 09:11:44 +01:00
parent e85f98a532
commit 2dee5123a4
No known key found for this signature in database
GPG key ID: E00F51288CB857CC
5 changed files with 11 additions and 4 deletions

View file

@ -9,7 +9,7 @@
- [x] prettier and eslint - [x] prettier and eslint
- [x] transition and loading times - [x] transition and loading times
- [ ] pwa - [ ] pwa
- [ ] seo, robots.txt - [x] seo, robots.txt
- [x] update the README - [x] update the README
- [ ] create image provider - [ ] create image provider
- [x] fetch recipe per id - [x] fetch recipe per id

BIN
bun.lockb

Binary file not shown.

View file

@ -2,7 +2,13 @@
export default defineNuxtConfig({ export default defineNuxtConfig({
devtools: { enabled: true }, devtools: { enabled: true },
modules: ["@nuxt/eslint", "@nuxt/image", "nuxt-icon", "nuxt-delay-hydration"], modules: [
"@nuxt/eslint",
"@nuxt/image",
"nuxt-icon",
"nuxt-delay-hydration",
"@nuxtjs/robots",
],
app: { app: {
head: { head: {
@ -19,6 +25,7 @@ export default defineNuxtConfig({
link: [{ rel: "icon", type: "image/png", href: "/favicon.png" }], link: [{ rel: "icon", type: "image/png", href: "/favicon.png" }],
}, },
pageTransition: { name: "page", mode: "out-in" }, pageTransition: { name: "page", mode: "out-in" },
layoutTransition: { name: "slide", mode: "out-in" },
}, },
build: { build: {
@ -53,3 +60,4 @@ export default defineNuxtConfig({
ssr: true, ssr: true,
compatibilityDate: "2024-12-13", compatibilityDate: "2024-12-13",
}); });

View file

@ -15,6 +15,7 @@
"dependencies": { "dependencies": {
"@nuxt/eslint": "^0.3.10", "@nuxt/eslint": "^0.3.10",
"@nuxt/image": "^1.6.0", "@nuxt/image": "^1.6.0",
"@nuxtjs/robots": "5.0.1",
"@trpc/client": "^10.45.2", "@trpc/client": "^10.45.2",
"@trpc/server": "^10.45.2", "@trpc/server": "^10.45.2",
"nuxt": "^3.14.1592", "nuxt": "^3.14.1592",

View file

@ -1,2 +0,0 @@
# https://www.robotstxt.org/robotstxt.html
User-agent: *