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";
|
import type { NextConfig } from "next";
|
||||||
|
|
||||||
const nextConfig: NextConfig = {
|
const nextConfig: NextConfig = {
|
||||||
|
output: 'export',
|
||||||
|
trailingSlash: true,
|
||||||
images: {
|
images: {
|
||||||
|
unoptimized: true,
|
||||||
remotePatterns: [
|
remotePatterns: [
|
||||||
{
|
{
|
||||||
protocol: 'https',
|
protocol: 'https',
|
||||||
|
|||||||
@ -14,6 +14,12 @@ import Features from '@/components/Features';
|
|||||||
import CTA from '@/components/CTA';
|
import CTA from '@/components/CTA';
|
||||||
import { products } from '@/lib/products';
|
import { products } from '@/lib/products';
|
||||||
|
|
||||||
|
export async function generateStaticParams() {
|
||||||
|
return products.map((product) => ({
|
||||||
|
id: product.id,
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
|
||||||
interface PageProps {
|
interface PageProps {
|
||||||
params: Promise<{ id: string }>;
|
params: Promise<{ id: string }>;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user