nitro.config.ts

f7aee527417fbdd054206dc158bf90d284f87b6d
wotaku/nitro.config.ts history · blame · raw

21 lines · 592 bytes

 1/**
 2 *  All Rights Reserved
 3 *
 4 *  Copyright (c) 2025 taskylizard
 5 *
 6 *  All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
 7 */
 8// https://nitro.unjs.io/config
 9export default defineNitroConfig({
10  compatibilityDate: '2024-12-16',
11  runtimeConfig: {
12    WEBHOOK_URL: process.env.WEBHOOK_URL,
13    op: { url: process.env.OP_URL, id: process.env.OP_ID }
14  },
15  srcDir: 'api',
16  routeRules: {
17    '/': {
18      cors: false
19    }
20  }
21})