trailing slash update and build issues fixed
This commit is contained in:
parent
48d9c5b4cd
commit
ac54d4da8d
@ -1,7 +1,10 @@
|
||||
import type { NextConfig } from "next";
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
output: 'export',
|
||||
trailingSlash: true,
|
||||
images: {
|
||||
unoptimized: true,
|
||||
remotePatterns: [
|
||||
{
|
||||
protocol: 'https',
|
||||
|
||||
@ -14,6 +14,12 @@ import Features from '@/components/Features';
|
||||
import CTA from '@/components/CTA';
|
||||
import { products } from '@/lib/products';
|
||||
|
||||
export async function generateStaticParams() {
|
||||
return products.map((product) => ({
|
||||
id: product.id,
|
||||
}));
|
||||
}
|
||||
|
||||
interface PageProps {
|
||||
params: Promise<{ id: string }>;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user