nitro.config.ts

7674b7b3d6fe05644cd4aed891ca39e6f4796077
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})