diff --git a/next.config.ts b/next.config.ts index 7ed51ab..eb4b0b0 100644 --- a/next.config.ts +++ b/next.config.ts @@ -1,5 +1,6 @@ const nextConfig = { output: "export", + trailingSlash: true, images: { unoptimized: true } }; export default nextConfig; diff --git a/public/.htaccess b/public/.htaccess index 197f811..a92fd7b 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -1,3 +1,6 @@ +# Enable directory index resolution (serves index.html from subdirectories) +DirectoryIndex index.html index.html.var + # Redirect old doc paths to new ones — using RewriteRule for broader compatibility RewriteEngine On diff --git a/src/app/legal/privacy/page.tsx b/src/app/policies/privacy/page.tsx similarity index 100% rename from src/app/legal/privacy/page.tsx rename to src/app/policies/privacy/page.tsx diff --git a/src/app/legal/terms/page.tsx b/src/app/policies/terms/page.tsx similarity index 96% rename from src/app/legal/terms/page.tsx rename to src/app/policies/terms/page.tsx index 3e77279..d8b603d 100644 --- a/src/app/legal/terms/page.tsx +++ b/src/app/policies/terms/page.tsx @@ -59,7 +59,7 @@ export default function TermsPage() {

6. Privacy

We collect no data. See our{' '} - Privacy Policy{' '} + Privacy Policy{' '} for details.

diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index 37b04c4..015b0ff 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -38,8 +38,8 @@ export default function Footer() { links: [ { label: 'Contact', href: 'mailto:support@dashcaddy.net' }, { label: 'Docs', href: '/docs' }, - { label: 'Privacy Policy', href: '/legal/privacy' }, - { label: 'Terms of Service', href: '/legal/terms' }, + { label: 'Privacy Policy', href: '/policies/privacy' }, + { label: 'Terms of Service', href: '/policies/terms' }, ], }, ];