feat: expose config in context + simplify page props (#2102)

This commit is contained in:
Marvin Hagemeister
2023-11-30 16:11:31 +01:00
committed by GitHub
parent aafe048243
commit 9e11c5c56b
11 changed files with 254 additions and 123 deletions
+23
View File
@@ -83,6 +83,29 @@ Deno.test("passes context to server component", async () => {
port: 8000,
transport: "tcp",
},
config: {
basePath: "",
build: {
outDir: "tests/fixture_server_components/_fresh",
target: [
"chrome99",
"firefox99",
"safari15",
],
},
dev: false,
plugins: [
{ entrypoints: {}, name: "twind", renderAsync: "AsyncFunction" },
],
render: "Function",
router: "<undefined>",
server: {},
staticDir: "tests/fixture_server_components/static",
},
data: "<undefined>",
error: "<undefined>",
codeFrame: "<undefined>",
pattern: "/context/:id",
render: "AsyncFunction",
Component: "Function",
destination: "route",