neurogen-dev/NeuroAPI

v2-dev add prefix for proxy

DeAlexPesh opened this issue · 0 comments

/app/next.config.mjs

PREFIX=/sub

const nextConfig = {
  trailingSlash: true,
  basePath: '${PREFIX}',
  assetPrefix: '${PREFIX}',
  async rewrites() {
    return [
      {
        source: '${PREFIX}/:path*',
        destination: '/:path*',
      },
    ]
  },
...