0

I'm not able to use a basepath in my Next.js project, despite having searched the docs, blogs, and forums for an hour.

Me trying to use an absolute path:

enter image description here

I followed the docs and set up my next.config.js looks like this:

/** @type {import('next').NextConfig} */
const nextConfig = {
  basePath: "/src",
};

module.exports = nextConfig;
Youssouf Oumar
  • 29,373
  • 11
  • 46
  • 65
  • I think you are looking for [`baseUrl`](https://nextjs.org/docs/app/building-your-application/configuring/absolute-imports-and-module-aliases) instead. – Youssouf Oumar May 20 '23 at 08:00

0 Answers0