mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-07-25 09:14:54 +10:00
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:
+14
-4
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user