This repository has been archived on 2024-10-12. You can view files and clone it, but cannot push or open issues or pull requests.
wikipedia-game-solver/apps/api/src/adonisrc.ts

60 lines
1.3 KiB
TypeScript
Raw Normal View History

2024-08-09 23:51:41 +02:00
import { defineConfig } from "@adonisjs/core/app"
export default defineConfig({
commands: [
async () => {
return await import("@adonisjs/core/commands")
},
async () => {
return await import("@adonisjs/lucid/commands")
},
],
providers: [
async () => {
return await import("@adonisjs/core/providers/app_provider")
},
async () => {
return await import("@adonisjs/core/providers/hash_provider")
},
{
file: async () => {
return await import("@adonisjs/core/providers/repl_provider")
},
environment: ["repl", "test"],
},
async () => {
return await import("@adonisjs/core/providers/vinejs_provider")
},
async () => {
return await import("@adonisjs/cors/cors_provider")
},
async () => {
return await import("@adonisjs/lucid/database_provider")
},
async () => {
return await import("@adonisjs/auth/auth_provider")
},
],
preloads: [
2024-08-10 02:32:34 +02:00
async () => {
return await import("#start/database.js")
},
2024-08-09 23:51:41 +02:00
async () => {
return await import("#start/routes.js")
},
async () => {
return await import("#start/kernel.js")
},
],
tests: {
suites: [
{
files: ["**/*.test.ts"],
name: "functional",
timeout: 30_000,
},
],
forceExit: false,
},
})