fix: ignore tsx files in routes

This commit is contained in:
TrèsAbhi committed 2024-10-07 18:38:25 -05:00
1 parent ea490628fb
commit ef52434a42
15 files changed
+8 -8

No files matched your search

+1 -1
View File
@@ -11,6 +11,6 @@
"src/**/*", "src/**/*",
".next/types/**/*.ts", ".next/types/**/*.ts",
"../website/src/components/Performance/PerformanceInfo.tsx", "../website/src/components/Performance/PerformanceInfo.tsx",
"../website/src/pages/tools/session/index.tsx" "../website/src/pages/tools/session/_index.tsx"
] ]
} }
@@ -1,7 +1,7 @@
--- ---
import type { GetStaticPaths } from 'astro'; import type { GetStaticPaths } from 'astro';
import { readFile } from 'fs/promises'; import { readFile } from 'fs/promises';
import { Page } from '.'; import { Page } from './_index';
import RootLayout from '../../../../layouts/RootLayout.astro'; import RootLayout from '../../../../layouts/RootLayout.astro';
export const getStaticPaths = (async () => { export const getStaticPaths = (async () => {
@@ -1,5 +1,5 @@
--- ---
import { Page } from '.'; import { Page } from './_index';
import RootLayout from '../../layouts/RootLayout.astro'; import RootLayout from '../../layouts/RootLayout.astro';
--- ---
@@ -1,6 +1,6 @@
--- ---
import ToolLayout from '../../../layouts/ToolLayout.astro'; import ToolLayout from '../../../layouts/ToolLayout.astro';
import { Page } from './index'; import { Page } from './_index';
--- ---
<ToolLayout> <ToolLayout>
@@ -1,5 +1,5 @@
--- ---
import { Page } from '.'; import { Page } from './_index';
import ToolLayout from '../../../layouts/ToolLayout.astro'; import ToolLayout from '../../../layouts/ToolLayout.astro';
--- ---
@@ -1,6 +1,6 @@
--- ---
import { Page } from '.';
import ToolLayout from '../../../layouts/ToolLayout.astro'; import ToolLayout from '../../../layouts/ToolLayout.astro';
import { Page } from './_index';
--- ---
<ToolLayout> <ToolLayout>
@@ -2,7 +2,7 @@
import { fetchTankDefinitions } from '@blitzkit/core'; import { fetchTankDefinitions } from '@blitzkit/core';
import type { GetStaticPaths } from 'astro'; import type { GetStaticPaths } from 'astro';
import ToolLayout from '../../../../layouts/ToolLayout.astro'; import ToolLayout from '../../../../layouts/ToolLayout.astro';
import { Page } from './index'; import { Page } from './_index';
export const getStaticPaths = (async () => { export const getStaticPaths = (async () => {
const tankDefinitions = await fetchTankDefinitions(); const tankDefinitions = await fetchTankDefinitions();
@@ -1,6 +1,6 @@
--- ---
import ToolLayout from '../../../layouts/ToolLayout.astro'; import ToolLayout from '../../../layouts/ToolLayout.astro';
import { Page } from './index'; import { Page } from './_index';
--- ---
<ToolLayout> <ToolLayout>