Refactor: Move news route to root level for WordPress compatibility
This commit is contained in:
parent
eed1bc1b6b
commit
8e27335f71
@ -1,6 +1,7 @@
|
|||||||
import type { NextConfig } from "next";
|
import type { NextConfig } from "next";
|
||||||
|
|
||||||
const nextConfig: NextConfig = {
|
const nextConfig: NextConfig = {
|
||||||
|
trailingSlash: true,
|
||||||
experimental: {
|
experimental: {
|
||||||
serverActions: {
|
serverActions: {
|
||||||
bodySizeLimit: '50mb',
|
bodySizeLimit: '50mb',
|
||||||
|
|||||||
@ -33,7 +33,7 @@ export const NewsCard = ({
|
|||||||
const fechaFormateada = fechaObj.toLocaleDateString('es-ES', { day: '2-digit', month: 'short', year: 'numeric' });
|
const fechaFormateada = fechaObj.toLocaleDateString('es-ES', { day: '2-digit', month: 'short', year: 'numeric' });
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Link href={`/noticia/${slug}`} className="group relative flex flex-col h-full bg-slate-900/40 backdrop-blur-xl border border-white/10 rounded-3xl overflow-hidden transition-all duration-500 hover:-translate-y-2 hover:shadow-[0_20px_40px_-15px_rgba(6,182,212,0.3)] hover:border-cyan-500/50">
|
<Link href={`/${slug}`} className="group relative flex flex-col h-full bg-slate-900/40 backdrop-blur-xl border border-white/10 rounded-3xl overflow-hidden transition-all duration-500 hover:-translate-y-2 hover:shadow-[0_20px_40px_-15px_rgba(6,182,212,0.3)] hover:border-cyan-500/50">
|
||||||
{/* Imagen Destacada */}
|
{/* Imagen Destacada */}
|
||||||
<div className="relative aspect-[16/10] w-full overflow-hidden bg-slate-800">
|
<div className="relative aspect-[16/10] w-full overflow-hidden bg-slate-800">
|
||||||
<div className="absolute inset-0 bg-gradient-to-t from-slate-950 via-slate-950/20 to-transparent z-10 opacity-90"></div>
|
<div className="absolute inset-0 bg-gradient-to-t from-slate-950 via-slate-950/20 to-transparent z-10 opacity-90"></div>
|
||||||
|
|||||||
@ -86,7 +86,7 @@ export default async function NewsTicker() {
|
|||||||
{[...noticias, ...noticias].map((noticia, idx) => {
|
{[...noticias, ...noticias].map((noticia, idx) => {
|
||||||
return (
|
return (
|
||||||
<Link
|
<Link
|
||||||
href={`/noticia/${noticia.slug}`}
|
href={`/${noticia.slug}`}
|
||||||
key={idx}
|
key={idx}
|
||||||
className="flex items-center gap-4 mx-8 group cursor-pointer border-r border-cyan-800/50 pr-8"
|
className="flex items-center gap-4 mx-8 group cursor-pointer border-r border-cyan-800/50 pr-8"
|
||||||
>
|
>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user