Add base template for website preview route

This commit is contained in:
Thilo Hohlt
2024-08-03 18:07:27 +02:00
parent 0b2a9f2383
commit dfcb129e69
10 changed files with 85 additions and 22 deletions

View File

@@ -0,0 +1,19 @@
import { randomUUID } from "node:crypto";
import { mkdir, writeFile } from "node:fs/promises";
import { extname, join, relative } from "node:path";
export const load = async ({ parent }) => {
const { website } = await parent();
return {
website
};
};
export const actions = {
publishWebsite: async ({ fetch }) => {
console.log("test");
}
};
const generateWebsiteOutput = async () => {};