chore:little fixes and formating and linting and patches
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import {
|
||||
type EventHandlerRequest,
|
||||
type H3Event,
|
||||
createError,
|
||||
defineEventHandler,
|
||||
type EventHandlerRequest,
|
||||
getHeader,
|
||||
getRequestIP,
|
||||
getRequestURL,
|
||||
type H3Event,
|
||||
readBody,
|
||||
setResponseStatus,
|
||||
} from 'h3';
|
||||
@@ -24,7 +24,7 @@ function getClientHeaders(event: H3Event<EventHandlerRequest>): Headers {
|
||||
headers.set('Content-Type', 'application/json');
|
||||
headers.set(
|
||||
'openpanel-client-id',
|
||||
getHeader(event, 'openpanel-client-id') || '',
|
||||
getHeader(event, 'openpanel-client-id') || ''
|
||||
);
|
||||
|
||||
// Construct origin: browsers send Origin header for POST requests and cross-origin requests,
|
||||
@@ -47,7 +47,7 @@ function getClientHeaders(event: H3Event<EventHandlerRequest>): Headers {
|
||||
|
||||
async function handleApiRoute(
|
||||
event: H3Event<EventHandlerRequest>,
|
||||
apiPath: string,
|
||||
apiPath: string
|
||||
) {
|
||||
try {
|
||||
const res = await fetch(`${API_URL}${apiPath}`, {
|
||||
|
||||
@@ -4,14 +4,9 @@
|
||||
"incremental": false,
|
||||
"outDir": "dist",
|
||||
"paths": {
|
||||
"#app": [
|
||||
"./node_modules/nuxt/dist/app/index"
|
||||
]
|
||||
"#app": ["./node_modules/nuxt/dist/app/index"]
|
||||
},
|
||||
"types": [
|
||||
"@types/node",
|
||||
"@nuxt/types"
|
||||
],
|
||||
"types": ["@types/node", "@nuxt/types"],
|
||||
"strictNullChecks": true
|
||||
},
|
||||
"exclude": ["dist"]
|
||||
|
||||
Reference in New Issue
Block a user