mirror of
https://github.com/ArthurDanjou/artmcp.git
synced 2026-01-14 16:54:22 +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({
|
export default defineNuxtConfig({
|
||||||
compatibilityDate: '2025-12-13',
|
|
||||||
|
|
||||||
modules: [
|
modules: [
|
||||||
'@nuxthub/core',
|
'@nuxthub/core',
|
||||||
@@ -10,18 +9,11 @@ export default defineNuxtConfig({
|
|||||||
'@nuxt/ui'
|
'@nuxt/ui'
|
||||||
],
|
],
|
||||||
|
|
||||||
css: ['~/assets/css/main.css'],
|
|
||||||
|
|
||||||
devtools: {
|
devtools: {
|
||||||
enabled: true,
|
enabled: true
|
||||||
},
|
},
|
||||||
|
|
||||||
content: {
|
css: ['~/assets/css/main.css'],
|
||||||
database: {
|
|
||||||
type: 'd1',
|
|
||||||
bindingName: 'artapi'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
runtimeConfig: {
|
runtimeConfig: {
|
||||||
discord: {
|
discord: {
|
||||||
@@ -42,10 +34,15 @@ export default defineNuxtConfig({
|
|||||||
experimental: {
|
experimental: {
|
||||||
asyncContext: true
|
asyncContext: true
|
||||||
},
|
},
|
||||||
|
compatibilityDate: '2025-12-13',
|
||||||
|
|
||||||
|
nitro: {
|
||||||
|
preset: 'cloudflare_module'
|
||||||
|
},
|
||||||
|
|
||||||
hub: {
|
hub: {
|
||||||
cache: true,
|
cache: true,
|
||||||
db: 'sqlite',
|
db: 'sqlite'
|
||||||
},
|
},
|
||||||
|
|
||||||
eslint: {
|
eslint: {
|
||||||
@@ -57,10 +54,6 @@ export default defineNuxtConfig({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
nitro: {
|
|
||||||
preset: "cloudflare_module",
|
|
||||||
},
|
|
||||||
|
|
||||||
mcp: {
|
mcp: {
|
||||||
name: 'ArtMCP',
|
name: 'ArtMCP',
|
||||||
version: '1.0.0',
|
version: '1.0.0',
|
||||||
|
|||||||
17
worker-configuration.d.ts
vendored
17
worker-configuration.d.ts
vendored
@@ -1,7 +1,10 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// Generated by Wrangler by running `wrangler types` (hash: 4ffc2e39cf9c8dc235ec80f2b29fba21)
|
// Generated by Wrangler by running `wrangler types` (hash: 0e830e66d194b5321c2ceb2f6b8949ed)
|
||||||
// Runtime types generated with workerd@1.20251213.0 2025-12-13
|
// Runtime types generated with workerd@1.20251213.0 2025-12-13 nodejs_compat
|
||||||
declare namespace Cloudflare {
|
declare namespace Cloudflare {
|
||||||
|
interface GlobalProps {
|
||||||
|
mainModule: typeof import("./.output/server/index");
|
||||||
|
}
|
||||||
interface Env {
|
interface Env {
|
||||||
CACHE: KVNamespace;
|
CACHE: KVNamespace;
|
||||||
NUXT_DISCORD_ID: string;
|
NUXT_DISCORD_ID: string;
|
||||||
@@ -20,6 +23,12 @@ declare namespace Cloudflare {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
interface Env extends Cloudflare.Env {}
|
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
|
// Begin runtime types
|
||||||
/*! *****************************************************************************
|
/*! *****************************************************************************
|
||||||
@@ -8601,7 +8610,7 @@ type AIGatewayHeaders = {
|
|||||||
[key: string]: string | number | boolean | object;
|
[key: string]: string | number | boolean | object;
|
||||||
};
|
};
|
||||||
type AIGatewayUniversalRequest = {
|
type AIGatewayUniversalRequest = {
|
||||||
provider: AIGatewayProviders | string;
|
provider: AIGatewayProviders | string; // eslint-disable-line
|
||||||
endpoint: string;
|
endpoint: string;
|
||||||
headers: Partial<AIGatewayHeaders>;
|
headers: Partial<AIGatewayHeaders>;
|
||||||
query: unknown;
|
query: unknown;
|
||||||
@@ -8617,7 +8626,7 @@ declare abstract class AiGateway {
|
|||||||
gateway?: UniversalGatewayOptions;
|
gateway?: UniversalGatewayOptions;
|
||||||
extraHeaders?: object;
|
extraHeaders?: object;
|
||||||
}): Promise<Response>;
|
}): Promise<Response>;
|
||||||
getUrl(provider?: AIGatewayProviders | string): Promise<string>;
|
getUrl(provider?: AIGatewayProviders | string): Promise<string>; // eslint-disable-line
|
||||||
}
|
}
|
||||||
interface AutoRAGInternalError extends Error {
|
interface AutoRAGInternalError extends Error {
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user