fix: storybook font rendering and shared fonts module #1

Merged
ilia merged 74 commits from feat/portfolio-setup into main 2026-05-18 18:45:22 +00:00
3 changed files with 14 additions and 11 deletions
Showing only changes of commit b4bda4b8f7 - Show all commits
+3
View File
@@ -5,6 +5,9 @@ import { usePathname } from 'next/navigation';
import { CONTACT_LINKS, cn } from '$shared/lib'; import { CONTACT_LINKS, cn } from '$shared/lib';
import type { NavItem } from '../model/types'; import type { NavItem } from '../model/types';
/**
* Props for SidebarNav.
*/
interface Props { interface Props {
/** /**
* Navigation items to render * Navigation items to render
+10 -10
View File
@@ -1,6 +1,6 @@
import { defineConfig } from 'vitest/config' import react from '@vitejs/plugin-react';
import react from '@vitejs/plugin-react' import path from 'path';
import path from 'path' import { defineConfig } from 'vitest/config';
export default defineConfig({ export default defineConfig({
plugins: [react()], plugins: [react()],
@@ -12,13 +12,13 @@ export default defineConfig({
}, },
resolve: { resolve: {
alias: { alias: {
'$shared': path.resolve(__dirname, './src/shared'), $shared: path.resolve(__dirname, './src/shared'),
'$entities': path.resolve(__dirname, './src/entities'), $entities: path.resolve(__dirname, './src/entities'),
'$widgets': path.resolve(__dirname, './src/widgets'), $widgets: path.resolve(__dirname, './src/widgets'),
'$features': path.resolve(__dirname, './src/features'), $features: path.resolve(__dirname, './src/features'),
'$app': path.resolve(__dirname, './src/app'), $app: path.resolve(__dirname, './src/app'),
'$routes': path.resolve(__dirname, './src/routes'), $routes: path.resolve(__dirname, './src/routes'),
'@': path.resolve(__dirname, '.'), '@': path.resolve(__dirname, '.'),
}, },
}, },
}) });