dev and docker compose fixes
ci / docker_image (push) Successful in 1m32s
ci / deploy (push) Successful in 16s

This commit is contained in:
2025-01-04 19:19:22 -06:00
parent 303526dac6
commit 27636988e6
12 changed files with 766 additions and 29 deletions
+11
View File
@@ -0,0 +1,11 @@
export const handle = async ({ event, resolve }) => {
const theme = event.cookies.get('theme');
if (!theme) {
return await resolve(event);
}
return await resolve(event, {
transformPageChunk: ({ html }) => {
return html.replace('data-theme=""', `data-theme="${theme}"`);
}
});
};