fix config path after move to folder /v1

This commit is contained in:
Morgan Vernay 2023-11-29 22:32:06 +02:00
parent b822304066
commit d3e1b0fa6e
4 changed files with 5 additions and 5 deletions

View File

@ -4,7 +4,7 @@ const i18nConfig = require("@calcom/config/next-i18next.config");
/** @type {import("next-i18next").UserConfig} */
const config = {
...i18nConfig,
localePath: path.resolve("../web/public/static/locales"),
localePath: path.resolve("../../web/public/static/locales"),
};
module.exports = config;

View File

@ -1,5 +1,5 @@
// TODO: Fix tests (These test were never running due to the vitest workspace config)
import prismaMock from "../../../../../tests/libs/__mocks__/prisma";
import prismaMock from "../../../../../../tests/libs/__mocks__/prismaMock";
import type { Request, Response } from "express";
import type { NextApiRequest, NextApiResponse } from "next";

View File

@ -13,8 +13,8 @@
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
"../../packages/types/*.d.ts",
"../../packages/types/next-auth.d.ts"
"../../../packages/types/*.d.ts",
"../../../packages/types/next-auth.d.ts"
],
"exclude": ["node_modules", "templates", "auth"]
}

View File

@ -39,7 +39,7 @@ export function ConnectButton({
if (onSuccess) {
await onSuccess();
}
} catch (error) {
} catch (error: any) {
setIsProcessing(false);
if (onError) {