In ./routes/admin-panel.jsx
export const handler = define.handlers({
GET() {
return ({
data: {},
status: 200,
headers: LoadAdminPanel,
});
},
});
export default define.page<typeof handler>(() => {
return <AdminPanel />;
});
This is supposed to render <AdminPanel /> JSX and give it to the browser with LoadAdminPanel headers, so why does it not have those headers?
In
./routes/admin-panel.jsxThis is supposed to render
<AdminPanel />JSX and give it to the browser withLoadAdminPanelheaders, so why does it not have those headers?