mirror of
https://github.com/ArthurDanjou/artmcp.git
synced 2026-01-14 13:24:21 +01:00
feat: mettre à jour la configuration de Nuxt et améliorer les types dans la configuration du worker
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
export default defineNuxtConfig({
|
||||
compatibilityDate: '2025-12-13',
|
||||
|
||||
modules: [
|
||||
'@nuxthub/core',
|
||||
@@ -10,18 +9,11 @@ export default defineNuxtConfig({
|
||||
'@nuxt/ui'
|
||||
],
|
||||
|
||||
css: ['~/assets/css/main.css'],
|
||||
|
||||
devtools: {
|
||||
enabled: true,
|
||||
enabled: true
|
||||
},
|
||||
|
||||
content: {
|
||||
database: {
|
||||
type: 'd1',
|
||||
bindingName: 'artapi'
|
||||
}
|
||||
},
|
||||
css: ['~/assets/css/main.css'],
|
||||
|
||||
runtimeConfig: {
|
||||
discord: {
|
||||
@@ -42,10 +34,15 @@ export default defineNuxtConfig({
|
||||
experimental: {
|
||||
asyncContext: true
|
||||
},
|
||||
compatibilityDate: '2025-12-13',
|
||||
|
||||
nitro: {
|
||||
preset: 'cloudflare_module'
|
||||
},
|
||||
|
||||
hub: {
|
||||
cache: true,
|
||||
db: 'sqlite',
|
||||
db: 'sqlite'
|
||||
},
|
||||
|
||||
eslint: {
|
||||
@@ -57,10 +54,6 @@ export default defineNuxtConfig({
|
||||
}
|
||||
},
|
||||
|
||||
nitro: {
|
||||
preset: "cloudflare_module",
|
||||
},
|
||||
|
||||
mcp: {
|
||||
name: 'ArtMCP',
|
||||
version: '1.0.0',
|
||||
|
||||
17
worker-configuration.d.ts
vendored
17
worker-configuration.d.ts
vendored
@@ -1,7 +1,10 @@
|
||||
/* eslint-disable */
|
||||
// Generated by Wrangler by running `wrangler types` (hash: 4ffc2e39cf9c8dc235ec80f2b29fba21)
|
||||
// Runtime types generated with workerd@1.20251213.0 2025-12-13
|
||||
// Generated by Wrangler by running `wrangler types` (hash: 0e830e66d194b5321c2ceb2f6b8949ed)
|
||||
// Runtime types generated with workerd@1.20251213.0 2025-12-13 nodejs_compat
|
||||
declare namespace Cloudflare {
|
||||
interface GlobalProps {
|
||||
mainModule: typeof import("./.output/server/index");
|
||||
}
|
||||
interface Env {
|
||||
CACHE: KVNamespace;
|
||||
NUXT_DISCORD_ID: string;
|
||||
@@ -20,6 +23,12 @@ declare namespace Cloudflare {
|
||||
}
|
||||
}
|
||||
interface Env extends Cloudflare.Env {}
|
||||
type StringifyValues<EnvType extends Record<string, unknown>> = {
|
||||
[Binding in keyof EnvType]: EnvType[Binding] extends string ? EnvType[Binding] : string;
|
||||
};
|
||||
declare namespace NodeJS {
|
||||
interface ProcessEnv extends StringifyValues<Pick<Cloudflare.Env, "NUXT_DISCORD_ID" | "NUXT_DISCORD_TOKEN" | "NUXT_DISCORD_USER_ID" | "NUXT_WAKATIME_CODING" | "NUXT_WAKATIME_EDITORS" | "NUXT_WAKATIME_LANGUAGES" | "NUXT_WAKATIME_OS" | "NUXT_WAKATIME_USER_ID" | "NUXT_STATUS_PAGE" | "STUDIO_GITHUB_CLIENT_ID" | "STUDIO_GITHUB_CLIENT_SECRET">> {}
|
||||
}
|
||||
|
||||
// Begin runtime types
|
||||
/*! *****************************************************************************
|
||||
@@ -8601,7 +8610,7 @@ type AIGatewayHeaders = {
|
||||
[key: string]: string | number | boolean | object;
|
||||
};
|
||||
type AIGatewayUniversalRequest = {
|
||||
provider: AIGatewayProviders | string;
|
||||
provider: AIGatewayProviders | string; // eslint-disable-line
|
||||
endpoint: string;
|
||||
headers: Partial<AIGatewayHeaders>;
|
||||
query: unknown;
|
||||
@@ -8617,7 +8626,7 @@ declare abstract class AiGateway {
|
||||
gateway?: UniversalGatewayOptions;
|
||||
extraHeaders?: object;
|
||||
}): Promise<Response>;
|
||||
getUrl(provider?: AIGatewayProviders | string): Promise<string>;
|
||||
getUrl(provider?: AIGatewayProviders | string): Promise<string>; // eslint-disable-line
|
||||
}
|
||||
interface AutoRAGInternalError extends Error {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user