Skip to content

Commit

Permalink
[wip] Feature: TanStackのルート定義からOGP分岐付きのindex.htmlを生成
Browse files Browse the repository at this point in the history
  • Loading branch information
ThinaticSystem committed Jun 30, 2024
1 parent f64f4c5 commit 23e27d0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions frontend/scripts/generate-template-html.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import process from "node:process";

import { routeTree } from "../src/routeTree.gen";

/** @typedef {import("../src/staticDataRouteOption").CustomStaticDataRouteOption & {}} StaticDataRouteOption */
/** @typedef {import("../src/staticDataRouteOption").CustomStaticDataRouteOption} CustomStaticDataRouteOption */

/** 書き出すHTMLファイルのパス */
const distFile = process.cwd() + "/dist/index.html";
Expand All @@ -16,7 +16,7 @@ const distFile = process.cwd() + "/dist/index.html";
* children?: Record<string, RouteTree>;
* fullPath: string;
* options: {
* staticData: StaticDataRouteOption;
* staticData: CustomStaticDataRouteOption;
* }
* }} RouteTree;
*/
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/routes/__root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ export const Route = createRootRoute({
),
staticData: {
ogp: {
title: "サイトトップ",
description: "サイトのトップ、サイトトップであるの",
title: "",
description: "",
},
},
});
4 changes: 2 additions & 2 deletions frontend/src/routes/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ export const Route = createFileRoute("/")({
component: Home,
staticData: {
ogp: {
title: "ログイン",
description: "ログイン画面であるの",
title: "Frost",
description: "Top",
},
},
});
Expand Down

0 comments on commit 23e27d0

Please sign in to comment.