next.js/test/integration/trailing-slashes-rewrite/next.config.js
next.config.js17 lines279 B
module.exports = {
  trailingSlash: true,

  async rewrites() {
    return [
      {
        source: '/:path*/',
        destination: '/:path*/',
      },
      {
        source: '/:path*/',
        destination: 'http://localhost:__EXTERNAL_PORT__/:path*',
      },
    ]
  },
}
Quest for Codev2.0.0
/
SIGN IN