We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 24a6e7a + ab167a0 commit e345ccdCopy full SHA for e345ccd
1 file changed
app/pages/embed/[chartId].tsx
@@ -5,6 +5,7 @@ import ErrorPage from "next/error";
5
import { ChartPublished } from "@/components/chart-published";
6
import { Config } from "@/configurator";
7
import { getConfig } from "@/db/config";
8
+import { serializeProps } from "@/db/serialize";
9
10
type PageProps =
11
| {
@@ -26,7 +27,7 @@ export const getServerSideProps: GetServerSideProps<PageProps> = async ({
26
27
28
if (config && config.data) {
29
// TODO validate configuration
- return { props: { status: "found", config } };
30
+ return { props: serializeProps({ status: "found", config }) };
31
}
32
33
res.statusCode = 404;
0 commit comments