few changes
This commit is contained in:
parent
447af46fa0
commit
5fbd696ad0
|
|
@ -1,8 +1,12 @@
|
||||||
/** @type {import('next').NextConfig} */
|
// next.config.js
|
||||||
|
const path = require('path');
|
||||||
|
const withFlowbiteReact = require('flowbite-react/plugin/nextjs');
|
||||||
|
|
||||||
const nextConfig = {
|
const nextConfig = {
|
||||||
experimental: {
|
output: 'export',
|
||||||
// hier können andere gültige experimentelle Optionen stehen, falls nötig
|
images: { unoptimized: true },
|
||||||
|
webpack: (config) => {
|
||||||
|
config.resolve.alias['@'] = path.resolve(process.cwd());
|
||||||
|
return config;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = nextConfig;
|
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,8 @@ import path from "path";
|
||||||
import withFlowbiteReact from "flowbite-react/plugin/nextjs";
|
import withFlowbiteReact from "flowbite-react/plugin/nextjs";
|
||||||
|
|
||||||
const nextConfig = {
|
const nextConfig = {
|
||||||
|
output: "export",
|
||||||
|
images: { unoptimized: true },
|
||||||
webpack: (config) => {
|
webpack: (config) => {
|
||||||
config.resolve.alias["@"] = path.resolve(process.cwd());
|
config.resolve.alias["@"] = path.resolve(process.cwd());
|
||||||
return config;
|
return config;
|
||||||
|
|
|
||||||
|
|
@ -1,32 +0,0 @@
|
||||||
// pages/demo.jsx
|
|
||||||
import React from "react";
|
|
||||||
import FontCard from "@/components/ui/FontCard"; // Default‑Import
|
|
||||||
import { fonts } from "@/lib/fonts";
|
|
||||||
|
|
||||||
export default function Demo() {
|
|
||||||
// Absicherung gegen undefined beim SSR
|
|
||||||
const robotoClass = fonts.roboto?.className || "";
|
|
||||||
|
|
||||||
return (
|
|
||||||
<section className="space-y-8 p-8">
|
|
||||||
{/* 1. next/font (voll integriert) */}
|
|
||||||
<h2 className={`${robotoClass} text-4xl`}>
|
|
||||||
Roboto aus next/font
|
|
||||||
</h2>
|
|
||||||
|
|
||||||
{/* 2. Tailwind‑Utility aus Map */}
|
|
||||||
<p className="font-montserrat text-xl">
|
|
||||||
Dieselbe Font via <code>font-montserrat</code>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
{/* 3. Deine Preview‑Komponente */}
|
|
||||||
<FontCard
|
|
||||||
fontName="Pacifico"
|
|
||||||
transformedText="Hallo Instagram!"
|
|
||||||
category="handwriting"
|
|
||||||
isPopular
|
|
||||||
index={0}
|
|
||||||
/>
|
|
||||||
</section>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue