Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: set trailingSlash true #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

erickcestari
Copy link

Why This Change?

Enabling the trailingSlash option ensures consistency in how URLs are managed across the application. It makes URL paths predictable and aligns with conventions for static file generation. By outputting static HTML files with the /index.html suffix, we avoid potential issues related to URL inconsistencies and ensure better compatibility with web servers and routing practices.

When used with output: "export" configuration, the /about page will output /about/index.html (instead of the default /about.html).

Docs: https://nextjs.org/docs/app/api-reference/next-config-js/trailingSlash

When used with output: "export" configuration, the /about page will output /about/index.html (instead of the default /about.html).
Copy link

netlify bot commented Jul 31, 2024

Deploy Preview for uwujogos ready!

Name Link
🔨 Latest commit 4e151e1
🔍 Latest deploy log https://app.netlify.com/sites/uwujogos/deploys/66aac6c9695b7e00081d028c
😎 Deploy Preview https://deploy-preview-3--uwujogos.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant