fix: various fixes

This commit is contained in:
DecDuck
2025-05-30 10:29:55 +10:00
parent fca85633c1
commit 83a9b22d82
7 changed files with 21 additions and 17 deletions

View File

@ -2,18 +2,14 @@ import tailwindcss from "@tailwindcss/vite";
import { execSync } from "node:child_process";
// get drop version
const dropVersion =
process.env.BUILD_DROP_VERSION === undefined
? "v0.3.0-alpha.1"
: process.env.BUILD_DROP_VERSION;
const dropVersion = process.env.BUILD_DROP_VERSION ?? "v0.3.0-alpha.1";
// example nightly: "v0.3.0-nightly.2025.05.28"
// get git ref or supply during build
const commitHash =
process.env.BUILD_GIT_REF === undefined
? execSync("git rev-parse --short HEAD").toString().trim()
: process.env.BUILD_GIT_REF;
process.env.BUILD_GIT_REF ??
execSync("git rev-parse --short HEAD").toString().trim();
console.log(`Building Drop ${dropVersion} #${commitHash}`);
// https://nuxt.com/docs/api/configuration/nuxt-config