Http://localhost:3000/api/auth/me returns 404 in Console

@tyf One other thing to note that might be giving me some trouble with this issue:

  • In my next.config.js I have reset the basepath to /my_path. My next.config.js looks something like this:
module.exports = {
  basePath: '/my_path',

  webpack: (config) => {
    return config
  },

  env: {
  },

  publicRuntimeConfig: {
    BACKEND_API_URL: process.env.BACKEND_API_URL,
    CONSENT_COOKIE_NAME: 'ConsentCookie'
  },
}

I have a gut feeling that this is the reason why https://localhost:3000/api/auth/me cannot be found. Should it instead be https://localhost:3000/my_path/api/auth/me ?
If so, how do I modify this endpoint?

1 Like