From 82b66488682e365cb92945d8ea219a34e73de531 Mon Sep 17 00:00:00 2001 From: Arunanshu Biswas <48434243+arunanshub@users.noreply.github.com> Date: Sat, 6 Jul 2024 20:03:56 +0530 Subject: [PATCH] build(nuxt): move to minimal nuxt config (#261) * build(nuxt): move to minimal nuxt config * build: ignore .vercel/ folder * build(deps-dev): removing icons reduces the size of edge function * fix(components): fix icon color * build(nuxt): enable `headNext` config * build(nuxt): remove because it is enabled by default https://nuxt.com/docs/api/nuxt-config#headnext * build(nuxt): add nuxt-security module * style(nuxt.config): biome * build(nuxt): add nuxt-seo and remove nuxt-secuity for now * build: disable ogimage * build: enable ogimage and update deps * build(nuxt): use dot as separator --- .gitignore | 1 + assets/css/tailwind.css | 5 - biome.json | 2 +- components/AsideLink.vue | 3 +- components/ConflictingAnswersList.vue | 2 +- components/IntroItem.vue | 10 +- components/StarButton.vue | 4 +- components/TheHeader.vue | 3 +- error.vue | 2 +- layouts/default.vue | 2 +- nuxt.config.ts | 115 +- package.json | 57 +- pnpm-lock.yaml | 4914 +++++++++++++++---------- 13 files changed, 3120 insertions(+), 2000 deletions(-) diff --git a/.gitignore b/.gitignore index 768a14e..6606fdb 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ .nuxt .nitro .cache +.vercel dist # Node dependencies diff --git a/assets/css/tailwind.css b/assets/css/tailwind.css index 5da10f7..8842dba 100644 --- a/assets/css/tailwind.css +++ b/assets/css/tailwind.css @@ -2,11 +2,6 @@ @tailwind components; @tailwind utilities; -.min-h-screen-dynamic { - /* prettier-ignore */ - @apply min-h-screen min-h-[100dvh]; -} - .btn-primary { @apply border border-black bg-sky-900 px-4 py-1 text-white hover:bg-white hover:text-gray-900 active:bg-sky-700 active:text-white; } diff --git a/biome.json b/biome.json index d17fc5b..429ea6d 100644 --- a/biome.json +++ b/biome.json @@ -1,5 +1,5 @@ { - "$schema": "https://biomejs.dev/schemas/1.5.3/schema.json", + "$schema": "https://biomejs.dev/schemas/1.8.3/schema.json", "organizeImports": { "enabled": true }, diff --git a/components/AsideLink.vue b/components/AsideLink.vue index 4355155..e452af9 100644 --- a/components/AsideLink.vue +++ b/components/AsideLink.vue @@ -6,8 +6,7 @@ >