[Bug]: nextjs does not work with proxy #5837
Unanswered
kaname-png
asked this question in
Q&A
Replies: 2 suggested answers 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.
0 replies
{{editor}}'s edit
{{actor}} deleted this content
.
{{editor}}'s edit
Loading...
Sorry, something went wrong.
-
|
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.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
{{editor}}'s edit
{{editor}}'s edit
Loading...
Sorry, something went wrong.
-
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.