Skip to content

Commit

Permalink
set base path
Browse files Browse the repository at this point in the history
  • Loading branch information
fatihky committed May 17, 2024
1 parent aa0e2f7 commit 23e0571
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 36 deletions.
30 changes: 29 additions & 1 deletion docs/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
'use client';

import { Grid } from '@mantine/core';
import { Arrays } from '../src/components/Arrays';
import { Basics } from '../src/components/Basics';
import { ConstantConfig } from '../src/components/ConstantConfig';
import { GettingStarted } from '../src/components/GettingStarted';
import { Intro } from '../src/components/Intro';
import { Objects } from '../src/components/Objects';
import { Transformers } from '../src/components/Transformers/Transformers';
import { UnionConfig } from '../src/components/UnionConfig';
import { AppLayout } from './app-layout';

export default function Page() {
return <></>;
return (
<AppLayout>
<Grid>
<Grid.Col span={{ md: 8, sm: 12 }}>
<Intro />
<GettingStarted />
<Basics />
<ConstantConfig />
<Arrays />
<Objects />
<Transformers />
<UnionConfig />
</Grid.Col>
</Grid>
</AppLayout>
);
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Playground } from '../../../src/Playground';
import { AppLayout } from '../../app-layout';
import { Playground } from '../../src/Playground';
import { AppLayout } from '../app-layout';

export default function PlaygroundPage() {
return (
Expand Down
31 changes: 0 additions & 31 deletions docs/app/purehtml/page.tsx

This file was deleted.

1 change: 1 addition & 0 deletions docs/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const nextConfig = {
poweredByHeader: false,
reactStrictMode: true,
assetPrefix: './',
basePath: process.env.NODE_ENV === 'production' ? '/purehtml' : '',
};

export default nextConfig;
3 changes: 1 addition & 2 deletions docs/tsconfig.node.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@
"moduleResolution": "bundler",
"allowSyntheticDefaultImports": true,
"strict": true
},
"include": ["vite.config.ts"]
}
}

0 comments on commit 23e0571

Please sign in to comment.