From 6eaae7c045212bf843dfe995b34e00cf5bb5b92e Mon Sep 17 00:00:00 2001 From: harrytran998 Date: Thu, 9 May 2024 17:10:22 +0700 Subject: [PATCH] chore: remove unnecessary things --- apps/web/.dockerignore | 1 - apps/web/Dockerfile | 7 +-- apps/web/shared/helpers/seo.ts | 101 --------------------------------- 3 files changed, 2 insertions(+), 107 deletions(-) delete mode 100644 apps/web/shared/helpers/seo.ts diff --git a/apps/web/.dockerignore b/apps/web/.dockerignore index 824fd58d..02f337f5 100644 --- a/apps/web/.dockerignore +++ b/apps/web/.dockerignore @@ -1,7 +1,6 @@ node_modules *.log .output -.nuxt #.env # Not ignoring this file because it can contain build-related settings. .DS_Store .vercel \ No newline at end of file diff --git a/apps/web/Dockerfile b/apps/web/Dockerfile index 8ecbb2e3..b6eddcf9 100644 --- a/apps/web/Dockerfile +++ b/apps/web/Dockerfile @@ -1,4 +1,4 @@ -FROM docker.io/library/node:18-alpine AS builder +FROM docker.io/library/node:20-alpine AS builder # Prepare work directory WORKDIR /techmely/web @@ -18,7 +18,7 @@ RUN bun install # Build RUN bun run build -FROM gcr.io/distroless/nodejs:18 AS runner +FROM gcr.io/distroless/nodejs:20 AS runner ARG UID=911 ARG GID=911 @@ -38,9 +38,6 @@ EXPOSE 2023/tcp ENV PORT=2023 -# Specify container only environment variables ( can be overwritten by runtime env ) -ENV NUXT_STORAGE_FS_BASE='/techmely/web/data' - # Persistent storage data VOLUME [ "/techmely/web/data" ] diff --git a/apps/web/shared/helpers/seo.ts b/apps/web/shared/helpers/seo.ts deleted file mode 100644 index 11ea1263..00000000 --- a/apps/web/shared/helpers/seo.ts +++ /dev/null @@ -1,101 +0,0 @@ -export const baseSeo = { - "@context": "https://schema.org", - "@type": "WebSite", - publisher: { - "@type": "Organization", - name: "Techmely", - url: "${AppEnv.HOST}", - logo: { - "@type": "ImageObject", - url: "${'/svg/logo.svg'}", - }, - }, - url: "${AppEnv.HOST}", - image: { - "@type": "ImageObject", - url: "${'/images/Thumbnail.png}", - width: "THUMBNAIL_WIDTH", - height: "THUMBNAIL_HEIGHT", - }, - mainEntityOfPage: { - "@type": "WebPage", - "@id": "${AppEnv.HOST}", - }, - description: "${description}", -}; - -export const seoMetaHead = [ - { - name: "viewport", - content: "width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no", - }, - { - hid: "description", - name: "description", - content: "Nuxt 3", - }, - { name: "supported-color-schemes", content: "light dark" }, - { name: "color-scheme", content: "dark" }, - { name: "theme-color", content: "" }, - { name: "google", content: "" }, - { name: "", content: "notranslate" }, - { - name: "copyright", - content: "Techmely - Nơi tạo ra những tập thể đứng đầu thế giới", - }, - { - name: "author", - content: "Techmely - Nơi tạo ra những tập thể đứng đầu thế giới", - }, - { - name: "generator", - content: "Techmely - Nơi tạo ra những tập thể đứng đầu thế giới", - }, - { name: "", content: "" }, - { name: "", content: "" }, - { name: "", content: "" }, - { name: "", content: "" }, - { name: "", content: "" }, - { - "http-equiv": "Accept-CH", - content: "Accept, DPR, Viewport-Width, ECT, Width, Save-Data", - }, - { charset: "utf-8" }, - { name: "msapplication-Config", content: "/favicons/browserconfig.xml" }, -]; - -export const seoLinkHead = [ - { - id: "favicon", - rel: "shortcut icon", - type: "image/x-icon", - href: "/favicons/favicon-dark.ico", - "data-href-light": "/favicons/favicon.ico", - "data-href-dark": "/favicons/favicon.ico", - }, - { - rel: "apple-touch-icon", - sizes: "180x180", - href: "/favicons/apple-touch-icon.png", - }, - { - rel: "icon", - type: "image/png", - sizes: "16x16", - href: "/favicons/favicon-16x16.png", - }, - { - rel: "icon", - type: "image/png", - sizes: "32x32", - href: "/favicons/favicon-32x32.png", - }, - { - id: "manifest", - rel: "manifest", - href: "/favicons/site-dark.webmanifest", - "data-manifest-href-light": "/favicons/site-light.webmanifest", - "data-manifest-href-dark": "/favicons/site-dark.webmanifest", - }, - { rel: "mask-icon", href: "/favicons/favicon-32x32.svg", color: "#21C3A9" }, -];