Skip to content

Commit 3acb9a3

Browse files
author
Lasim
committed
feat: update configuration and add verification files
- Modified .gitignore to exclude additional file types - Updated next.config.mjs to disable trailing slashes and prevent redirects - Added postbuild script in package.json for serving JSON - Added serve.json configuration for clean URLs and directory listing
1 parent fe78443 commit 3acb9a3

5 files changed

Lines changed: 13 additions & 1 deletion

File tree

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,8 @@ coverage/
7777
._*.tsx
7878
._*.css
7979
._*.cjs
80+
._*.mjs
81+
._*.js
82+
._*.html
83+
._*.scss
8084
out/

next.config.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ const withMDX = createMDX();
66
const config = {
77
reactStrictMode: true,
88
output: 'export', // Enable static HTML export
9-
trailingSlash: true, // Required for static export
9+
trailingSlash: false, // Changed to false to avoid trailing slashes
10+
skipTrailingSlashRedirect: true, // Prevent automatic trailing slash redirects
1011
// basePath: '/docs', // Set base path for the application
1112
// assetPrefix: '/docs', // Ensure assets are also prefixed with /docs
1213
images: {

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"dev": "next dev",
88
"build": "next build",
99
"start": "npx serve@latest out",
10+
"postbuild": "cp serve.json out/serve.json",
1011
"lint:md": "npx markdownlint-cli2 '**/*.md' '#node_modules' '#.github'",
1112
"lint:links": "node check-links.js",
1213
"semantic-release": "semantic-release",

public/google99cd6dc986babdb3.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
google-site-verification: google99cd6dc986babdb3.html

serve.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"cleanUrls": true,
3+
"trailingSlash": false,
4+
"directoryListing": false
5+
}

0 commit comments

Comments
 (0)