mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-01-24 02:00:25 +08:00
376fd17a61
* chore: merge main * feat: update docs * feat: remove coze-assistant * feat: add watermark plugin * feat: update preferences * feat: update docs --------- Co-authored-by: vince <vince292007@gmail.com>
19 lines
486 B
TypeScript
19 lines
486 B
TypeScript
import errorHandler from './error';
|
|
|
|
export default defineNitroConfig({
|
|
devErrorHandler: errorHandler,
|
|
errorHandler: '~/error',
|
|
routeRules: {
|
|
'/api/**': {
|
|
cors: true,
|
|
headers: {
|
|
'Access-Control-Allow-Credentials': 'true',
|
|
'Access-Control-Allow-Headers': '*',
|
|
'Access-Control-Allow-Methods': 'GET,HEAD,PUT,PATCH,POST,DELETE',
|
|
'Access-Control-Allow-Origin': '*',
|
|
'Access-Control-Expose-Headers': '*',
|
|
},
|
|
},
|
|
},
|
|
});
|