This commit is contained in:
Dax Raad
2025-09-02 23:56:10 -04:00
parent 1c31c2dd97
commit 8d368fdfd2
11 changed files with 621 additions and 25 deletions

View File

@@ -3,7 +3,7 @@ import type { APIEvent } from "@solidjs/start/server"
async function handler(evt: APIEvent) {
const req = evt.request.clone()
const url = new URL(req.url)
const targetUrl = `https://dev.opencode.ai${url.pathname}${url.search}`
const targetUrl = `https://docs.opencode.ai${url.pathname}${url.search}`
const response = await fetch(targetUrl, {
method: req.method,
headers: req.headers,

View File

@@ -3,7 +3,7 @@ import type { APIEvent } from "@solidjs/start/server"
async function handler(evt: APIEvent) {
const req = evt.request.clone()
const url = new URL(req.url)
const targetUrl = `https://dev.opencode.ai${url.pathname}${url.search}`
const targetUrl = `https://docs.opencode.ai${url.pathname}${url.search}`
const response = await fetch(targetUrl, {
method: req.method,
headers: req.headers,

View File

@@ -67,7 +67,7 @@ export default function Home() {
<section data-component="cta">
<div data-slot="left">
<a href="/docs">Get Started</a>
<a target="_self" href="/docs">Get Started</a>
</div>
<div data-slot="right">
<button data-copy data-slot="command">

View File

@@ -3,7 +3,7 @@ import type { APIEvent } from "@solidjs/start/server"
async function handler(evt: APIEvent) {
const req = evt.request.clone()
const url = new URL(req.url)
const targetUrl = `http://dev.opencode.ai/docs${url.pathname}${url.search}`
const targetUrl = `https://docs.opencode.ai/docs${url.pathname}${url.search}`
const response = await fetch(targetUrl, {
method: req.method,
headers: req.headers,