Getting error on putting a trailing slash even after trailingSlash: false
Unanswered
Teddy Roosevelt Terrier posted this in #help-forum
Teddy Roosevelt TerrierOP
When I put a trailing slash like www.example.com/test/ I get this error -
Not Found The requested URL was not found on this server.
Also I have a page with more subpages, so when I reload the page the trailing slash gets added automatically and this error occurs.
The trailing slash should automatically be removed right?
I tried adding trailingSlash: false in my next.config.js file -
/** @type {import('next').NextConfig} */ const nextConfig = { output: "export", images: { unoptimized: true, }, trailingSlash: false, };
module. Exports = nextConfig;
Not Found The requested URL was not found on this server.
Also I have a page with more subpages, so when I reload the page the trailing slash gets added automatically and this error occurs.
The trailing slash should automatically be removed right?
I tried adding trailingSlash: false in my next.config.js file -
/** @type {import('next').NextConfig} */ const nextConfig = { output: "export", images: { unoptimized: true, }, trailingSlash: false, };
module. Exports = nextConfig;