feat: expose config in context + simplify page props (#2102)
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user