Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Apr 13, 2024
1 parent d6d6bba commit 3b27d72
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/react-server/examples/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"@hattip/adapter-node": "^0.0.44",
"@hiogawa/unocss-preset-antd": "2.2.1-pre.7",
"@hiogawa/utils": "^1.6.3",
"@hiogawa/vite-plugin-error-overlay": "latest",
"@hiogawa/vite-plugin-ssr-middleware": "latest",
"@iconify-json/ri": "^1.1.20",
"@playwright/test": "^1.42.1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
"use client";

import type { ErrorPageProps } from "@hiogawa/react-server/server";
import React from "react";

export default function ErrorPage(props: ErrorPageProps) {
React.useEffect(() => {
(async () => { throw props.error; })();
}, []);

return (
<div className="flex flex-col gap-2">
<h4>ErrorPage</h4>
Expand Down
2 changes: 2 additions & 0 deletions packages/react-server/examples/basic/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
vitePluginLogger,
vitePluginSsrMiddleware,
} from "@hiogawa/vite-plugin-ssr-middleware";
import { vitePluginErrorOverlay } from "@hiogawa/vite-plugin-error-overlay"
import react from "@vitejs/plugin-react";
import unocss from "unocss/vite";
import { type Plugin, defineConfig } from "vite";
Expand All @@ -13,6 +14,7 @@ export default defineConfig({
plugins: [
react(),
unocss(),
vitePluginErrorOverlay(),
vitePluginReactServer({
plugins: [
testVitePluginVirtual(),
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3b27d72

Please sign in to comment.