nitro.config.ts

6d4ec333b2c675238f40425dc1e0f888d62602e2
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})