mirror of
https://github.com/fmhy/edit.git
synced 2026-02-18 09:11:33 +11:00
improve
This commit is contained in:
parent
5b4c22923b
commit
eea17da08a
1 changed files with 14 additions and 3 deletions
|
|
@ -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 },
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue