From 230e5d6864ac062e46828b00b4ad8d0184329459 Mon Sep 17 00:00:00 2001 From: Liam Date: Mon, 22 Apr 2024 02:31:02 +0100 Subject: [PATCH] ci --- Dockerfile | 7 ++++++- public/robots.txt | 9 +++++++++ public/sitemap.xml | 3 +++ 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 public/robots.txt create mode 100644 public/sitemap.xml diff --git a/Dockerfile b/Dockerfile index d79ca41..d7a6874 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,7 +30,12 @@ ENV GIT_REV ${GIT_REV} ENV NEXT_TELEMETRY_DISABLED 1 # Build the frontend -RUN pnpm run build +RUN \ + if [ -f yarn.lock ]; then yarn run build; \ + elif [ -f package-lock.json ]; then npm run build; \ + elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm run build; \ + else echo "Lockfile not found." && exit 1; \ + fi # Run postbuild tasks RUN pnpm run postbuild diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 0000000..d79ac0a --- /dev/null +++ b/public/robots.txt @@ -0,0 +1,9 @@ +# * +User-agent: * +Allow: / + +# Host +Host: https://mcutils.xyz + +# Sitemaps +Sitemap: https://mcutils.xyz/sitemap.xml diff --git a/public/sitemap.xml b/public/sitemap.xml new file mode 100644 index 0000000..39fed00 --- /dev/null +++ b/public/sitemap.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file