chore(config): update auth, env, i18n, proxy, and dependencies
- Update src/auth.ts auth configuration - Update src/env.mjs environment variable validation - Update src/i18n/request.ts locale handling - Update src/proxy.ts middleware - Update src/next-auth.d.ts type declarations - Update package.json and package-lock.json dependencies
This commit is contained in:
@@ -50,6 +50,10 @@ export default getRequestConfig(async () => {
|
||||
users,
|
||||
leave,
|
||||
nav,
|
||||
rbac,
|
||||
questions,
|
||||
parent,
|
||||
invitationCodes,
|
||||
] = await Promise.all([
|
||||
import(`@/shared/i18n/messages/${locale}/common.json`),
|
||||
import(`@/shared/i18n/messages/${locale}/auth.json`),
|
||||
@@ -81,6 +85,10 @@ export default getRequestConfig(async () => {
|
||||
import(`@/shared/i18n/messages/${locale}/users.json`),
|
||||
import(`@/shared/i18n/messages/${locale}/leave.json`),
|
||||
import(`@/shared/i18n/messages/${locale}/nav.json`),
|
||||
import(`@/shared/i18n/messages/${locale}/rbac.json`),
|
||||
import(`@/shared/i18n/messages/${locale}/questions.json`),
|
||||
import(`@/shared/i18n/messages/${locale}/parent.json`),
|
||||
import(`@/shared/i18n/messages/${locale}/invitation-codes.json`),
|
||||
]);
|
||||
|
||||
return {
|
||||
@@ -116,6 +124,10 @@ export default getRequestConfig(async () => {
|
||||
users: users.default,
|
||||
leave: leave.default,
|
||||
nav: nav.default,
|
||||
rbac: rbac.default,
|
||||
questions: questions.default,
|
||||
parent: parent.default,
|
||||
invitationCodes: invitationCodes.default,
|
||||
},
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user