mirror of
https://github.com/bookorbit/bookorbit.git
synced 2026-11-03 08:21:39 -06:00
style(client): refine app shell actions
Move GitHub actions into the sidebar footer and tighten header grouping.
This commit is contained in:
@@ -22,6 +22,7 @@ import {
|
||||
registerConditionalHsts,
|
||||
registerEmptyBodyContentTypeParser,
|
||||
shouldInjectEmptyJsonBody,
|
||||
shouldServeSpaFallback,
|
||||
} from './common/utils/bootstrap.utils';
|
||||
|
||||
const MAX_COVER_BYTES = 20 * 1024 * 1024;
|
||||
@@ -100,6 +101,9 @@ async function bootstrap() {
|
||||
if (request.url.startsWith('/api')) {
|
||||
return nestHandler(request, reply);
|
||||
}
|
||||
if (!shouldServeSpaFallback(request.url)) {
|
||||
return reply.status(404).send({ statusCode: 404, message: 'Not Found', path: request.url });
|
||||
}
|
||||
return reply.sendFile('index.html');
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user