Replies: 3 comments 4 replies
-
You need to use the In your /** @type {import('next').NextConfig} */
const nextConfig = {
basePath: "/absproxy/3000",
};
module.exports = nextConfig; Then access it at References: |
Beta Was this translation helpful? Give feedback.
-
Hi that only works for js files (bundle files) but when you try to use files from public folder it doesn't work. <Image src"/image.png"/> Trying to use files like this gets a 404 error because the browser tries to get them from the root domain. |
Beta Was this translation helpful? Give feedback.
-
If you set basepath to '' and assetPrefix to '/proxy/portnumber/', you'll be able to access your homepage but routing does not work properly... I suspect NextJS is serving the assets to /proxy/portnumber/proxy/portnumber but looking for them in /proxy/portnumber/ |
Beta Was this translation helpful? Give feedback.
-
Is there an existing issue for this?
OS/Web Information
code-server --version
:1.72.1
129500ee4c8ab7263461ffe327268ba56b9f210d
arm64
Steps to Reproduce
Expected
To be able to use the nextjs server without the error that the assets are not found.
Actual
Errors about files in the _next/static folder not being found.
Logs
No response
Screenshot/Video
Does this issue happen in VS Code or GitHub Codespaces?
Are you accessing code-server over HTTPS?
Notes
No response
Beta Was this translation helpful? Give feedback.
All reactions