github / github/codespaces-nextjs

Build completely broken in codespaces now.

未關閉
#13 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
JavaScript
星號
152
分支
210
PR 合併指標
30 天內沒有已合併 PR

描述

Hello,

I have a codespace build of nextjs, and vite from the codespaces templates
and neither of them work out of the box due to https issues. I'm not sure if the hosting domain for the port forwarded sites has changed, but using .dev means the browser is forced to connect using https and I am pretty sure that neither nextjs or vite are configured to use https which causes ssl issues.

If I load the codespace into my local vs code instance and start the vite/nextjs instance there I can connect just fine. So I imagine for these templates to work again either:

1) Don't serve these port forwarded instances from a .dev domain so developers can connect to them via http
2) Update these templates to work for a https connection and make that a default since .dev domains can only be connected to via https

### Simple Browser
![ssl_issue](https://github.com/github/codespaces-nextjs/assets/14841355/893d71b9-5697-41b2-ad79-457dc84ee6df)
### Normal Browser (see SSL error)
![ssl_issue_2](https://github.com/github/codespaces-nextjs/assets/14841355/9a4786aa-8e61-4370-9929-7f22d7463ff9)

貢獻指南

開啟貢獻指南

研究方向

首先在 Codespaces Next.js 和 Vite 範本中重現問題,並檢查其連接埠轉送 URL 如何處理 HTTPS。完成的標準是兩個範本都能從 Codespaces 啟動,且其轉送的網站能透過 HTTP 或使用可正常運作的 HTTPS 設定載入,而不出現 SSL 錯誤。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
nextjs, vite
領域
developer-experience, web-dev
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。