Series of small fixes (#346)

* migrate bufbuild config to v2

* fix localdir lookup

* fix old oidc redirect path

* rework twemoji path stuff

* fix torrential cmd

* fix broken lock file

* align dev server port with nginx

* bump pnpm

* bump nuxt

* make translations lazy loaded

* format numbers via i18n

* fix prisma breaking if extension already exists
This commit is contained in:
Husky
2026-02-09 11:27:31 -05:00
committed by GitHub
parent d0d79b3668
commit e4a295f767
12 changed files with 1183 additions and 2957 deletions
+14 -4
View File
@@ -11,13 +11,18 @@ const packageJsonSchema = type({
version: "string",
});
const twemojiJson = module.findPackageJSON(
const twemojiPackage = module.findPackageJSON(
"@discordapp/twemoji",
import.meta.url,
);
if (!twemojiJson) {
if (!twemojiPackage) {
throw new Error("Could not find @discordapp/twemoji package.");
}
const twemojiAssetsPath = path.join(
path.dirname(twemojiPackage),
"dist",
"svg",
);
// get drop version
const dropVersion = getDropVersion();
@@ -96,10 +101,14 @@ export default defineNuxtConfig({
// redirect old OIDC callback route
"/auth/callback/oidc": {
redirect: "/api/v1/auth/odic/callback",
redirect: "/api/v1/auth/oidc/callback",
},
},
devServer: {
port: 4000,
},
nitro: {
minify: true,
compressPublicAssets: true,
@@ -143,7 +152,7 @@ export default defineNuxtConfig({
{
baseName: "twemoji",
// get path to twemoji svg assets
dir: path.join(path.dirname(twemojiJson), "dist", "svg"),
dir: twemojiAssetsPath,
},
],
},
@@ -169,6 +178,7 @@ export default defineNuxtConfig({
optimizeTranslationDirective: false,
},
defaultLocale: "en-us",
lazy: true,
strategy: "no_prefix",
experimental: {
localeDetector: "localeDetector.ts",