feat: add codeserver dev profile

NEXT_DEV_PROFILE=codeserver wires basePath, assetPrefix, and
allowedDevOrigins from CODESERVER_HOST/PORT in .env.local. Use
/absproxy/{port} so code-server preserves the path prefix and Next's
basePath matches the incoming request.

Run with `npm run dev:codeserver` and access via
https://<host>/absproxy/<port>/.
This commit is contained in:
tiennm99 committed 2026-04-26 19:16:46 +07:00
1 parent 9d52b5b02a
commit 400c55bef8
5 files changed
+30 -2

No files matched your search

+2
View File
@@ -0,0 +1,2 @@
CODESERVER_HOST=your-codeserver.example.com
CODESERVER_PORT=3000