This commit is contained in:
maropboia 2024-05-03 11:38:43 +06:00
parent 5b4c22923b
commit eea17da08a

View file

@ -1,12 +1,23 @@
//https://nitro.unjs.io/config // https://nitro.unjs.io/config
import { defineNitroConfig } from 'nitropack'
export default defineNitroConfig({ export default defineNitroConfig({
runtimeConfig: { runtimeConfig: {
WEBHOOK_URL: process.env.WEBHOOK_URL WEBHOOK_URL: {
public: false,
// Add any necessary environment variable validation here
// For example:
// match: /.+/,
}
}, },
srcDir: '.vitepress', srcDir: '.vitepress',
routeRules: { routeRules: {
'/': { '/': {
cors: false cors: false
} },
// Add any additional route rules as needed
// For example:
// '/api/*': { cors: true },
} }
}) })